mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 20:43:46 +08:00
.Net framework support QuestDb
This commit is contained in:
28
Src/Asp.Net/QuestDbTest/Models/Order.cs
Normal file
28
Src/Asp.Net/QuestDbTest/Models/Order.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace OrmTest
|
||||
{
|
||||
[SugarTable("order_1")]
|
||||
public class Order
|
||||
{
|
||||
//不支持自增和主键 (标识主键是用来更新用的)
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public long Id { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
public decimal Price { get; set; }
|
||||
// [SugarColumn(IsNullable = true,SqlParameterDbType =System.Data.DbType.Date)]
|
||||
public DateTime CreateTime { get; set; }
|
||||
[SugarColumn(IsNullable =true)]
|
||||
public long CustomId { get; set; }
|
||||
|
||||
public double Value { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public List<OrderItem> Items { get; set; }
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user