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.

26 lines
713 B

6 years ago
using SqlSugar;
using System;
6 years ago
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OrmTest
{
2 years ago
[SugarIndex("id_order_name", nameof(Order.Name), OrderByType.Asc)]
6 years ago
public class Order
{
2 years ago
2 years ago
[SugarColumn(IsPrimaryKey = true, IsIdentity = true,ColumnDescription ="主键")]
6 years ago
public int Id { get; set; }
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
}
}