2019-06-04 17:48:25 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
using System;
|
2019-05-27 17:07:16 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace OrmTest
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
public class Order
|
|
|
|
|
{
|
2019-06-04 20:01:28 +08:00
|
|
|
|
[SugarColumn(IsPrimaryKey = true, OracleSequenceName ="Seq_Id")]
|
2019-05-27 17:07:16 +08:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
|
public decimal Price { get; set; }
|
2019-06-04 17:48:25 +08:00
|
|
|
|
[SugarColumn(IsNullable = true)]
|
2019-05-27 17:07:16 +08:00
|
|
|
|
public DateTime CreateTime { get; set; }
|
2019-06-04 17:48:25 +08:00
|
|
|
|
[SugarColumn(IsNullable =true)]
|
2019-05-27 17:07:16 +08:00
|
|
|
|
public int CustomId { get; set; }
|
2019-06-04 17:48:25 +08:00
|
|
|
|
[SugarColumn(IsIgnore = true)]
|
|
|
|
|
public List<OrderItem> Items { get; set; }
|
2019-05-27 17:07:16 +08:00
|
|
|
|
}
|
|
|
|
|
}
|