private DbConnection GetConn(T obj) { if (obj == null) { obj = dbModel; } return(DBTool.GetConnection(obj.GetDBModel_DBName(), obj.GetShuffledModel())); }
private DbConnection GetConn(T obj) { if (obj == null) { obj = DBModel; } return(DBTool.GetConnection(obj)); }
private DbConnection GetConn(T obj) { if (obj == null) { obj = dbModel; if (obj.GetShuffledModel() != ShuffledModel.Empty) { throw new NoShuffledException(obj.GetDBModel_TableName(), "分库分表对象"); } } return(DBTool.GetConnection(obj.GetDBModel_DBName(), obj.GetShuffledModel())); }