public void Load(IIocBuilder builder) { builder.RegisterType <IDbProvider, DefaultDbProvider>(); builder.RegisterType <ISqlFileExecutor, DefaultSqlFileExecutor>(); builder.RegisterFactory <DbContext, DbContextFactory>(); builder.RegisterGeneric(typeof(IRepository <>), typeof(DbContextRepository <>)); }
public void Load(IIocBuilder builder) { builder.RegisterType<IDbProvider, DefaultDbProvider>(); builder.RegisterType<ISqlFileExecutor, DefaultSqlFileExecutor>(); builder.RegisterFactory<DbContext, DbContextFactory>(); builder.RegisterGeneric(typeof(IRepository<>), typeof(DbContextRepository<>)); }
public void Load(IIocBuilder builder) { builder.RegisterType<IAppEventHandler, OracleBLToolkitDataEventHandler>(name: "BLToolkitDataEventHandler"); builder.RegisterType<IDbProvider, OracleDbProvider>(); builder.RegisterType<ISqlFileExecutor, SqlFileExecutor>(); builder.RegisterFactory<IDataContext, DataContextFactory>(); builder.RegisterGeneric(typeof(IRepository<>), typeof(DataContextRepository<>)); }
public void Load(IIocBuilder builder) { builder.RegisterType <IAppEventHandler, OracleBLToolkitDataEventHandler>(name: "BLToolkitDataEventHandler"); builder.RegisterType <IDbProvider, OracleDbProvider>(); builder.RegisterType <ISqlFileExecutor, SqlFileExecutor>(); builder.RegisterFactory <IDataContext, DataContextFactory>(); builder.RegisterGeneric(typeof(IRepository <>), typeof(DataContextRepository <>)); }
public void Load(IIocBuilder builder) { builder.RegisterType <ISqlFileExecutor, SqlFileExecutor>(); builder.RegisterFactory <MongoDatabase, DatabaseFactory>(); builder.RegisterGeneric(typeof(IRepository <>), typeof(CollectionRepository <>)); }
public void Load(IIocBuilder builder) { builder.RegisterGeneric(typeof(IRepositoryEventHandler<>), typeof(SearchRepositoryEventHandler<>)); builder.RegisterType<IAppEventHandler, SearchAppEventHandler>(); }
public void Load(IIocBuilder builder) { builder.RegisterType<ISqlFileExecutor, SqlFileExecutor>(); builder.RegisterFactory<MongoDatabase, DatabaseFactory>(); builder.RegisterGeneric(typeof(IRepository<>), typeof(CollectionRepository<>)); }
public void Load(IIocBuilder builder) { builder.RegisterGeneric(typeof(IRepositoryEventHandler <>), typeof(SearchRepositoryEventHandler <>)); builder.RegisterType <IAppEventHandler, SearchAppEventHandler>(); }