Beispiel #1
0
        public static CrudInitializer UseEntityFrameworkExtensions(this CrudInitializer initializer, BulkExtensions extensions = BulkExtensions.All)
        {
            EntityFrameworkCoreInitializer.Unregister(initializer);

            return(initializer
                   .UseEntityFramework()
                   .AddInitializer(new EntityFrameworkExtensionsInitializer(extensions)));
        }
Beispiel #2
0
 public static CrudInitializer UseEntityFramework(this CrudInitializer initializer)
 {
     return(initializer.AddInitializer(new EntityFrameworkCoreInitializer()));
 }
Beispiel #3
0
 public static void Unregister(CrudInitializer initializer)
 {
     initializer.RemoveInitializers <EntityFrameworkCoreInitializer>();
 }
 public static CrudInitializer UseFluentValidation(this CrudInitializer initializer)
 {
     return(initializer.AddInitializer(new FluentValidationInitializer()));
 }