2019-06-04 13:22:37 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
using System;
|
2019-05-22 20:42:46 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace OrmTest
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public class Order
|
|
|
|
|
{
|
2019-06-04 13:22:37 +08:00
|
|
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
2019-05-22 20:42:46 +08:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public decimal Price { get; set; }
|
2019-06-04 13:22:37 +08:00
|
|
|
|
[SugarColumn(IsNullable = true)]
|
2019-05-22 20:42:46 +08:00
|
|
|
|
public DateTime CreateTime { get; set; }
|
2019-06-04 13:22:37 +08:00
|
|
|
|
[SugarColumn(IsNullable =true)]
|
2019-05-22 20:42:46 +08:00
|
|
|
|
public int CustomId { get; set; }
|
2019-06-04 13:22:37 +08:00
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
|
|
|
|
public List<OrderItem> Items { get; set; }
|
2019-05-22 20:42:46 +08:00
|
|
|
|
}
|
|
|
|
|
}
|