Пример #1
0
 protected override void OnModelCreating(ModelBuilder modelBuilder)
 {
     base.OnModelCreating(modelBuilder);
     EntityHelperFactory.GetHelpers().ForEach(helper => {
         if (helper.IsGlobalFilter)
         {
         }
     });
 }
    public override InterceptionResult <int> SavingChanges(DbContextEventData eventData, InterceptionResult <int> result)
    {
        EntityHelperFactory.GetHelpers().ForEach(helper => helper.EntityModifier(eventData.Context.ChangeTracker));

        return(base.SavingChanges(eventData, result));
    }