コード例 #1
0
 public void Load(IIocBuilder builder)
 {
     builder.RegisterType <IDbProvider, DefaultDbProvider>();
     builder.RegisterType <ISqlFileExecutor, DefaultSqlFileExecutor>();
     builder.RegisterFactory <DbContext, DbContextFactory>();
     builder.RegisterGeneric(typeof(IRepository <>), typeof(DbContextRepository <>));
 }
コード例 #2
0
ファイル: EFModule.cs プロジェクト: cairabbit/daf
 public void Load(IIocBuilder builder)
 {
     builder.RegisterType<IDbProvider, DefaultDbProvider>();
     builder.RegisterType<ISqlFileExecutor, DefaultSqlFileExecutor>();
     builder.RegisterFactory<DbContext, DbContextFactory>();
     builder.RegisterGeneric(typeof(IRepository<>), typeof(DbContextRepository<>));
 }
コード例 #3
0
        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<>));
        }
コード例 #4
0
        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 <>));
        }
コード例 #5
0
 public void Load(IIocBuilder builder)
 {
     builder.RegisterType <ISqlFileExecutor, SqlFileExecutor>();
     builder.RegisterFactory <MongoDatabase, DatabaseFactory>();
     builder.RegisterGeneric(typeof(IRepository <>), typeof(CollectionRepository <>));
 }
コード例 #6
0
 public void Load(IIocBuilder builder)
 {
     builder.RegisterGeneric(typeof(IRepositoryEventHandler<>), typeof(SearchRepositoryEventHandler<>));
     builder.RegisterType<IAppEventHandler, SearchAppEventHandler>();
 }
コード例 #7
0
ファイル: MongoDbModule.cs プロジェクト: cairabbit/daf
 public void Load(IIocBuilder builder)
 {
     builder.RegisterType<ISqlFileExecutor, SqlFileExecutor>();
     builder.RegisterFactory<MongoDatabase, DatabaseFactory>();
     builder.RegisterGeneric(typeof(IRepository<>), typeof(CollectionRepository<>));
 }
コード例 #8
0
 public void Load(IIocBuilder builder)
 {
     builder.RegisterGeneric(typeof(IRepositoryEventHandler <>), typeof(SearchRepositoryEventHandler <>));
     builder.RegisterType <IAppEventHandler, SearchAppEventHandler>();
 }