コード例 #1
0
        public static Reponsitory GetBulkUnitOfWork(string dataname, DbSupportType type)
        {
            IDictionary <string, IDbFactory> listFactor;

            if (!Factories.TryGetValue(type, out listFactor))
            {
                throw new Exception("Type database doesn't register");
            }
            IDbFactory factory;

            if (!listFactor.TryGetValue(dataname, out factory))
            {
                throw new Exception("Database doesn't register");
            }
            return(factory.CreateBulkContext(dataname));
        }
コード例 #2
0
 protected DatabaseConfig(DbSupportType sp)
 {
     Direct = sp;
 }
コード例 #3
0
 protected DatabaseConfig()
 {
     Direct = DbSupportType.MicrosoftSqlServer;
 }
コード例 #4
0
 public TableAttribute()
 {
     DbType = DbSupportType.MicrosoftSqlServer;
 }