Example #1
0
 public DataSet QueryDataSet(IUnitOfDapper unitData)
 {
     //if (ParamList != null && ParamList.Count > 0)
     //{
     return(unitData.QueryDataSet(Sql, Param));
     //}
     //return null;
 }
Example #2
0
        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());
            }
        }
Example #3
0
 public object QueryObject(IUnitOfDapper unitData)
 {
     return(unitData.QueryObject(Sql, Param));
 }
Example #4
0
 public void AddUnitOfData(IUnitOfDapper unitOfData)
 {
     //throw new NotImplementedException();
     this.DbContextList.Add(unitOfData);
 }