2019-06-02 11:09:03 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
using System;
|
2019-05-05 16:12:29 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace OrmTest
|
|
|
|
|
{
|
2022-12-05 18:03:46 +08:00
|
|
|
|
[SugarIndex("id_order_name", nameof(Order.Name), OrderByType.Asc)]
|
2019-05-05 16:12:29 +08:00
|
|
|
|
public class Order
|
|
|
|
|
{
|
2019-06-02 11:09:03 +08:00
|
|
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
2019-05-05 16:12:29 +08:00
|
|
|
|
public int Id { get; set; }
|
2022-06-11 11:12:01 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// 姓名
|
|
|
|
|
/// </summary>
|
2019-05-05 16:12:29 +08:00
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public decimal Price { get; set; }
|
2019-06-02 11:09:03 +08:00
|
|
|
|
[SugarColumn(IsNullable = true)]
|
2019-05-05 16:12:29 +08:00
|
|
|
|
public DateTime CreateTime { get; set; }
|
2019-06-02 11:09:03 +08:00
|
|
|
|
[SugarColumn(IsNullable =true)]
|
2019-05-09 17:55:11 +08:00
|
|
|
|
public int CustomId { get; set; }
|
2019-06-02 11:09:03 +08:00
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
|
|
|
|
public List<OrderItem> Items { get; set; }
|
2019-05-05 16:12:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|