Exemplo n.º 1
0
 //获取DataSet数据
 public ExeResEdm GetDataSet(List <SqlContianer> ltSqls, DBOperUser dbLogMsg = null)
 {
     ltSqls = ltSqls ?? new List <SqlContianer>();
     ltSqls = ltSqls.Select(a => { var tb = ComDBFun.GetTableNameFromSelectSql(a.strSqlTxt); if (string.IsNullOrEmpty(tb))
                                   {
                                       a.strSqlTxt = "select * from " + tableName + " where " + a.strSqlTxt;
                                   }
                                   return(a); }).ToList();
     return(baseDB.GetDataSet(ltSqls, dbLogMsg));
 }
Exemplo n.º 2
0
 public LogORMBaseDal()
 {
     tableName   = CurDalParas.TableName;
     primaryKey  = CurDalParas.PrimaryKey;
     skipCols    = CurDalParas.SkipCols;
     updateKeys  = CurDalParas.UpdateKeys;
     deleteKeys  = CurDalParas.DeleteKeys;
     softDelFalg = CurDalParas.SoftDelFalg;
     orderby     = CurDalParas.Orderby;
     conStr      = ComDBFun.GetConnectionString(CurDalParas.DBConStringKey);
     GetBaseDBByDBType();
     CurSqlProvider = SqlProvider.CreateProvider(CurDalParas.CurDatabaseType);
 }