mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace OrmTest
|
|
{
|
|
[SqlSugar.SugarTable("OrderDetail")]
|
|
public class OrderItem
|
|
{
|
|
[SqlSugar.SugarColumn(IsPrimaryKey =true, IsIdentity =true)]
|
|
public int ItemId { get; set; }
|
|
public int OrderId { get; set; }
|
|
public decimal? Price { get; set; }
|
|
[SqlSugar.SugarColumn(IsNullable = true)]
|
|
public DateTime? CreateTime { get; set; }
|
|
[SqlSugar.SugarColumn(IsNullable = true)]
|
|
public string OrderName { get; set; }
|
|
}
|
|
[SqlSugar.SugarTable("OrderDetail")]
|
|
public class VOrderItem
|
|
{
|
|
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
|
public int ItemId { get; set; }
|
|
public int OrderId { get; set; }
|
|
public decimal? Price { get; set; }
|
|
[SqlSugar.SugarColumn(IsNullable = true)]
|
|
public DateTime? CreateTime { get; set; }
|
|
[SqlSugar.SugarColumn(IsIgnore = true)]
|
|
public string OrderName { get; set; }
|
|
}
|
|
}
|