public ICrudConfiguration <Entity> CreateRepository <Entity>() where Entity : class, new() { ICrudConfiguration <Entity> repository = new CrudConfiguration <Entity>(); _repository = repository; return(repository); }
public CrudServicePool( IConfiguration configuration, CrudConfiguration crudConfiguration, IUserService userService, ILogger <CrudService> logger = null) { this.configuration = configuration; this.crudConfiguration = crudConfiguration; this.userService = userService; this.logger = logger; this.crudServices = new ConcurrentDictionary <string, CrudService>(); this.InitializeCrudServices(); }