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.

29 lines
800 B

2 years ago
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OrmTest
{
[SugarTable("order_1")]
2 years ago
public class Order
{
2 years ago
//不支持自增和主键 (标识主键是用来更新用的)
[SugarColumn(IsPrimaryKey = true)]
public long Id { get; set; }
2 years ago
public string Name { get; set; }
public decimal Price { get; set; }
2 years ago
// [SugarColumn(IsNullable = true,SqlParameterDbType =System.Data.DbType.Date)]
2 years ago
public DateTime CreateTime { get; set; }
[SugarColumn(IsNullable =true)]
public long CustomId { get; set; }
public double Value { get; set; }
2 years ago
[SugarColumn(IsIgnore = true)]
public List<OrderItem> Items { get; set; }
}
}