2022-07-29 22:44:21 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace OrmTest
|
|
|
|
|
{
|
2022-07-31 23:51:07 +08:00
|
|
|
|
[SqlSugar.SugarTable("OrderDetail_1")]
|
2022-07-29 22:44:21 +08:00
|
|
|
|
public class OrderItem
|
|
|
|
|
{
|
2022-07-31 22:01:02 +08:00
|
|
|
|
//不支持自增和主键 (标识主键是用来更新用的)
|
|
|
|
|
[SqlSugar.SugarColumn(IsPrimaryKey =true)]
|
2022-07-31 23:51:07 +08:00
|
|
|
|
public long ItemId { get; set; }
|
|
|
|
|
public long OrderId { get; set; }
|
2022-07-29 22:44:21 +08:00
|
|
|
|
public decimal? Price { get; set; }
|
|
|
|
|
[SqlSugar.SugarColumn(IsNullable = true)]
|
|
|
|
|
public DateTime? CreateTime { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|