Example #1
0
 private DbConnection GetConn(T obj)
 {
     if (obj == null)
     {
         obj = dbModel;
     }
     return(DBTool.GetConnection(obj.GetDBModel_DBName(), obj.GetShuffledModel()));
 }
Example #2
0
 private DbConnection GetConn(T obj)
 {
     if (obj == null)
     {
         obj = DBModel;
     }
     return(DBTool.GetConnection(obj));
 }
Example #3
0
 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()));
 }