Update demo

This commit is contained in:
sunkaixuan
2023-11-06 21:26:47 +08:00
parent 2585c30528
commit 56c1998ad3
94 changed files with 1742 additions and 114 deletions

View File

@@ -0,0 +1,25 @@
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OrmTest
{
[SugarIndex("id_order_name", nameof(Order.Name), OrderByType.Asc)]
public class Order
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true,ColumnDescription ="主键")]
public int Id { get; set; }
public string Name { get; set; }
public decimal Price { get; set; }
[SugarColumn(IsNullable = true)]
public DateTime CreateTime { get; set; }
[SugarColumn(IsNullable =true)]
public int CustomId { get; set; }
[SugarColumn(IsIgnore = true)]
public List<OrderItem> Items { get; set; }
}
}