2022-02-26 16:33:03 +08:00
|
|
|
|
using SqlSugar;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace OrmTest
|
|
|
|
|
{
|
|
|
|
|
|
2024-08-27 12:26:13 +08:00
|
|
|
|
[SugarTable("OrderTest011")]
|
2022-02-26 16:33:03 +08:00
|
|
|
|
public class Order
|
|
|
|
|
{
|
|
|
|
|
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
|
|
|
|
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; }
|
|
|
|
|
}
|
|
|
|
|
}
|