如果我通过Entity Framework Database First生成我的实体,并且我想使用这样的函数:
AuditManager.DefaultConfiguration.Exclude<T>();
考虑到我想调用它的次数应该等于实体的数量
前任:
AuditManager.DefaultConfiguration.Exclude<Employee>();
AuditManager.DefaultConfiguration.Exclude<Department>();
AuditManager.DefaultConfiguration.Exclude<Room>();
现在如何遍历选定数量的实体并将每个实体传递给Exclude
函数?