...自定义业务实体 DbSet summary 自然人信息 Persons get; set; 人员关联的照片 PersonPhotos 例如乡镇、村委等组织机构(你在 RegisterViewModel 中用了 ...
~~~ ߛ� 注意:慎用此方法,避免意外暴露已删数据! --- ## ✅ 可选增强:定义接口统一管理软删除 为了将来扩展到其他实体(如 ~Person~, ~Team~),建议定义一个接口: ~~~csharp // Interfaces/ISoftDeletable.cs public interface ISoftDeletable { bool IsDeleted { get; set; } DateTime? DeletedAt { get; set; } } ~~~ 然后让 ~Household~ 实现它: ~~~csharp ...