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)); }
protected DatabaseConfig(DbSupportType sp) { Direct = sp; }
protected DatabaseConfig() { Direct = DbSupportType.MicrosoftSqlServer; }
public TableAttribute() { DbType = DbSupportType.MicrosoftSqlServer; }