Update demo

This commit is contained in:
sunkaixuan 2022-12-05 18:03:46 +08:00
parent 4d314df11b
commit e49d7cce41
2 changed files with 3 additions and 2 deletions

View File

@ -6,9 +6,10 @@ 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; }

View File

@ -6,7 +6,7 @@ using System.Text;
namespace OrmTest
{
[SugarIndex("id_order_name", nameof(Order.Name), OrderByType.Asc)]
public class Order
{
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]