Update demo

This commit is contained in:
sunkaixuan
2019-06-02 11:09:03 +08:00
parent daa333192a
commit ac783fa2f1
6 changed files with 30 additions and 15 deletions

View File

@@ -1,4 +1,5 @@
using System;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@@ -8,14 +9,16 @@ namespace OrmTest
public class Order
{
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int Id { get; set; }
public string Name { get; set; }
public decimal Price { get; set; }
[SqlSugar.SugarColumn(IsNullable = true)]
[SugarColumn(IsNullable = true)]
public DateTime CreateTime { get; set; }
[SqlSugar.SugarColumn(IsNullable =true)]
[SugarColumn(IsNullable =true)]
public int CustomId { get; set; }
[SugarColumn(IsIgnore = true)]
public List<OrderItem> Items { get; set; }
}
}