SqlSugar源码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
672 B

6 years ago
using SqlSugar;
using System;
6 years ago
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OrmTest
{
public class Order
{
6 years ago
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
6 years ago
public int Id { get; set; }
2 years ago
/// <summary>
/// 姓名
/// </summary>
6 years ago
public string Name { get; set; }
public decimal Price { get; set; }
6 years ago
[SugarColumn(IsNullable = true)]
6 years ago
public DateTime CreateTime { get; set; }
6 years ago
[SugarColumn(IsNullable =true)]
6 years ago
public int CustomId { get; set; }
6 years ago
[SugarColumn(IsIgnore = true)]
public List<OrderItem> Items { get; set; }
6 years ago
}
}