我在我的模型中有几个实体,但现在我需要通过新的审计字段来扩展它们,在这些字段中,我需要保存谁更改了实体。auditableEntity.Property(p => p.CreatedBy).IsModified = false; }public class ApplicationDbContext : Ide
我有一个很好的想法来完成测试场景,因为测试项目没有运行asp.net,而且我有一个很棒的视频教程来说明如何完成它。在控制器中,我可以访问它private IConfigurationit non-static and newing it up works, but defeats the purpose