Exemplo n.º 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<>));
 }
Exemplo n.º 2
0
 public void Load(IIocBuilder builder)
 {
     builder.RegisterType <IDbProvider, DefaultDbProvider>();
     builder.RegisterType <ISqlFileExecutor, DefaultSqlFileExecutor>();
     builder.RegisterFactory <DbContext, DbContextFactory>();
     builder.RegisterGeneric(typeof(IRepository <>), typeof(DbContextRepository <>));
 }
Exemplo n.º 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<>));
        }
Exemplo n.º 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 <>));
        }
Exemplo n.º 5
0
 public void Load(IIocBuilder builder)
 {
     builder.RegisterType <ISqlFileExecutor, SqlFileExecutor>();
     builder.RegisterFactory <MongoDatabase, DatabaseFactory>();
     builder.RegisterGeneric(typeof(IRepository <>), typeof(CollectionRepository <>));
 }
Exemplo n.º 6
0
 public void Load(IIocBuilder builder)
 {
     builder.RegisterType<ISqlFileExecutor, SqlFileExecutor>();
     builder.RegisterFactory<MongoDatabase, DatabaseFactory>();
     builder.RegisterGeneric(typeof(IRepository<>), typeof(CollectionRepository<>));
 }