mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
20 lines
547 B
C#
20 lines
547 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace OrmTest
|
|
{
|
|
[SqlSugar.SugarTable("OrderDetail_1")]
|
|
public class OrderItem
|
|
{
|
|
//不支持自增和主键 (标识主键是用来更新用的)
|
|
[SqlSugar.SugarColumn(IsPrimaryKey =true)]
|
|
public long ItemId { get; set; }
|
|
public long OrderId { get; set; }
|
|
public decimal? Price { get; set; }
|
|
[SqlSugar.SugarColumn(IsNullable = true)]
|
|
public DateTime? CreateTime { get; set; }
|
|
}
|
|
}
|