Exemple #1
0
 public static IAuditConfigBuilder WithEntityFilter(this IAuditConfigBuilder configBuilder, Func <EntityEntry, bool> filterFunc)
 {
     configBuilder.WithEntityFilter(filterFunc);
     return(configBuilder);
 }
Exemple #2
0
 public static IAuditConfigBuilder IgnoreEntity <TEntity>(this IAuditConfigBuilder configBuilder) where TEntity : class
 {
     configBuilder.WithEntityFilter(entityEntry => entityEntry.Entity.GetType() != typeof(TEntity));
     return(configBuilder);
 }
Exemple #3
0
 public static IAuditConfigBuilder IgnoreTable(this IAuditConfigBuilder configBuilder, string tableName)
 {
     configBuilder.WithEntityFilter(entityEntry => entityEntry.Metadata.GetTableName() != tableName);
     return(configBuilder);
 }
Exemple #4
0
 public static IAuditConfigBuilder IgnoreEntity(this IAuditConfigBuilder configBuilder, Type entityType)
 {
     configBuilder.WithEntityFilter(entityEntry => entityEntry.Entity.GetType() != entityType);
     return(configBuilder);
 }