public DataSet QueryDataSet(IUnitOfDapper unitData) { //if (ParamList != null && ParamList.Count > 0) //{ return(unitData.QueryDataSet(Sql, Param)); //} //return null; }
public Xml2DB(IUnitOfDapper unitOfDapper) { _unitOfDapper = unitOfDapper; tableNames = new List <string>(); string sql = "select table_name from information_schema.TABLES where TABLE_SCHEMA=(select database());"; DataSet dataSet = _unitOfDapper.QueryDataSet(sql); DataRowCollection dataRows = dataSet.Tables[0].Rows; for (int i = 0; i < dataRows.Count; i++) { tableNames.Add(dataRows[i][0].ToString().Trim().ToUpper()); } }
public object QueryObject(IUnitOfDapper unitData) { return(unitData.QueryObject(Sql, Param)); }
public void AddUnitOfData(IUnitOfDapper unitOfData) { //throw new NotImplementedException(); this.DbContextList.Add(unitOfData); }