SqlSugar/Src/Asp.NetCore2/ClickHouseTest/Models/Order.cs

25 lines
592 B
C#
Raw Normal View History

2022-08-12 20:56:36 +08:00
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OrmTest
{
public class Order
{
2022-08-13 16:03:42 +08:00
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
2022-08-12 20:56:36 +08:00
public string Name { get; set; }
public decimal Price { get; set; }
[SugarColumn(IsNullable = true)]
public DateTime CreateTime { get; set; }
[SugarColumn(IsNullable =true)]
2022-08-13 16:03:42 +08:00
public long CustomId { get; set; }
2022-08-12 20:56:36 +08:00
[SugarColumn(IsIgnore = true)]
public List<OrderItem> Items { get; set; }
}
}