1234567891011121314151617181920 |
- using FreeSql.DataAnnotations;
- namespace Admin.Core.Model
- {
- /// <summary>
- /// 实体软删除
- /// </summary>
- public class EntitySoftDelete<TKey> : Entity<TKey>,IEntitySoftDelete
- {
- /// <summary>
- /// 是否删除
- /// </summary>
- [Column(Position = -1)]
- public bool IsDeleted { get; set; } = false;
- }
- public class EntitySoftDelete : EntitySoftDelete<long>
- {
- }
- }
|