feat: 添加sample示例
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using Acme.BookStore.Domain.Shared.Enums;
|
||||
using SqlSugar;
|
||||
using Volo.Abp.Data;
|
||||
using Volo.Abp.Domain.Entities.Auditing;
|
||||
|
||||
namespace Acme.BookStore.Domain.Entities
|
||||
{
|
||||
[SugarTable("Book")]
|
||||
public class BookAggregateRoot : AuditedAggregateRoot<Guid>
|
||||
{
|
||||
[SugarColumn(IsPrimaryKey = true)]
|
||||
public override Guid Id { get; protected set; }
|
||||
public string Name { get; set; }
|
||||
|
||||
public BookTypeEnum Type { get; set; }
|
||||
|
||||
public DateTime PublishDate { get; set; }
|
||||
|
||||
public float Price { get; set; }
|
||||
|
||||
[SugarColumn(IsIgnore = true)]
|
||||
public override ExtraPropertyDictionary ExtraProperties { get; protected set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user