first commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
using JSMachine.WMS.Domain.IRepository;
|
||||
using SqlSugar;
|
||||
|
||||
namespace JSMachine.WMS.Domain.Repository
|
||||
{
|
||||
/// <summary>
|
||||
/// 领域实体的公共基类,提供主键和审计时间字段。
|
||||
/// 继承此类的实体可被通用仓储按主键进行持久化操作。
|
||||
/// </summary>
|
||||
public class AggregateRoot : IAggregateRoot
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
/// <summary>
|
||||
/// 实体唯一标识,同时映射为数据库主键。
|
||||
/// </summary>
|
||||
public Guid Id
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 实体创建时间。
|
||||
/// </summary>
|
||||
public DateTime? CreationTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 实体最后修改时间。
|
||||
/// </summary>
|
||||
public DateTime? LastModifiedTime { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user