Add a configuration table query

This commit is contained in:
sunkaixuna
2021-04-24 03:20:01 +08:00
parent ca3770e8cb
commit 18aae24648
10 changed files with 229 additions and 3 deletions

View File

@@ -14,5 +14,19 @@ namespace OrmTest
public decimal? Price { get; set; }
[SqlSugar.SugarColumn(IsNullable = true)]
public DateTime? CreateTime { get; set; }
[SqlSugar.SugarColumn(IsNullable = true)]
public string OrderName { get; set; }
}
[SqlSugar.SugarTable("OrderDetail")]
public class VOrderItem
{
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
public int ItemId { get; set; }
public int OrderId { get; set; }
public decimal? Price { get; set; }
[SqlSugar.SugarColumn(IsNullable = true)]
public DateTime? CreateTime { get; set; }
[SqlSugar.SugarColumn(IsIgnore = true)]
public string OrderName { get; set; }
}
}