Update demo

This commit is contained in:
sunkaixuan
2019-06-02 10:42:18 +08:00
parent 2a644d438e
commit daa333192a
3 changed files with 11 additions and 10 deletions

View File

@@ -5,16 +5,17 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace OrmTest.Models
namespace OrmTest
{
[SugarTable("OrderDetail")]
public class OrderItemInfo
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int ItemId { get; set; }
public string ItemCode { get; set; }
public decimal Pirce { get; set; }
public int OrderId { get; set; }
public decimal? Price { get; set; }
[SqlSugar.SugarColumn(IsNullable = true)]
public DateTime? CreateTime { get; set; }
[SugarColumn(IsIgnore = true)]
public Order Order { get; set; }
}