SqlSugar/Src/Asp.NetCore2/MongoDbTest/OrmTest/Models/Order.cs

25 lines
627 B
C#
Raw Normal View History

2025-05-04 15:59:46 +08:00
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MongoDbTest
{
public class OrderInfo
{
2025-05-04 18:39:11 +08:00
[SugarColumn(IsPrimaryKey = true, IsOnlyIgnoreInsert =true)]
public string Id { get; set; }
2025-05-04 15:59:46 +08:00
public string Name { get; set; }
public decimal Price { get; set; }
[SugarColumn(IsNullable = true)]
public DateTime CreateTime { get; set; }
[SugarColumn(IsNullable =true)]
public int CustomId { get; set; }
[SugarColumn(IsIgnore = true)]
public List<OrderItem> Items { get; set; }
}
}