public static void Init() { //Load all the caching services ApplicationCrudHooksCachingService.GetCurrent(); ApplicationPermissionCachingService.GetCurrent(); BusinessRulesCachingService.GetCurrent(); CollectionFilterCachingService.GetCurrent(); CrudHooksCachingService.GetCurrent(); CrudRulesCachingService.GetCurrent(); DataRulesCachingService.GetCurrent(); ModelClassCachingService.GetCurrent(); RolePermissionCachingService.GetCurrent(); //run the old config...soon to be obsolete Config.Init(); }
//protected override IEnumerable<IValidatable> GetDataRules() //{ // return DataRulesCachingService.GetCurrent().GetCreateRules(this.Model); //} //protected override IEnumerable<IValidatable> GetBusinessRules() //{ // return BusinessRulesCachingService.GetCurrent().GetCreateRules(this.Model, this.Context); //} protected override IEnumerable <IExecutable> GetCrudRules() { return(CrudRulesCachingService.GetCurrent().GetCreateRules(this.Model, this.Context)); }