}
public override IList<T> QueryForList<T>(string sqlStr, CommandType cmdType, List<DbParameter> listParams)
{
return QueryForList<T>(sqlStr, cmdType, listParams, typeof(T));
}
public override IList<T> QueryForList<T>(string sqlStr, CommandType cmdType, List<DbParameter> listParams, Type objType)
{
return ModelConverter.QueryForList<T>(sqlStr, cmdType, listParams, objType, this.CurrentDbOperation);
}
#endregion
#region query for dictionary
public override IDictionary<K, T> QueryForDictionary<K, T>(string key, string sqlStr)
{
return QueryForDictionary<K, T>(key, sqlStr, CommandType.Text, null, typeof(T));
}
public override IDictionary<K, T> QueryForDictionary<K, T>(string key, string sqlStr, Type objType)
{
return QueryForDictionary<K, T>(key, sqlStr, CommandType.Text, null, objType);
}
public override IDictionary<K, T> QueryForDictionary<K, T>(string key, string sqlStr, CommandType cmdType, Type objType)
{
return QueryForDictionary<K, T>(key, sqlStr, cmdType, null, objType);
}
public override IDictionary<K, T> QueryForDictionary<K, T>(string key, string sqlStr, CommandType cmdType, List<DbParameter> listParams, Type objType)
{
return ModelConverter.QueryForDictionary<K, T>(key, sqlStr, cmdType, listParams, objType, this.CurrentDbOperation);
}
#endregion
#region dataset datatable
public override DataTable FillDataTable(string sqlStr, CommandType cmdType, List<DbParameter> listParams)
{
return this.CurrentDbOperation.FillDataTable(sqlStr, cmdType, listParams);
}
public override DataSet FillDataSet(string sqlStr, CommandType cmdType, List<DbParameter> listParams)
{
return this.CurrentDbOperation.FillDataSet(sqlStr, cmdType, listParams);
}
#endregion
#region ExecuteScalar
public override object ExecuteScalar(string sqlStr, CommandType cmdType, List<DbParameter> listParams)
{
return this.CurrentDbOperation.ExecuteScalar(sqlStr, cmdType, listParams);
}
#endregion
#region insert
public override int Insert(string sqlStr)
{
object obj = ExecuteScalar(sqlStr, CommandType.Text, null);
int id = obj == null ? 0 : int.Parse(obj.ToString());
return id;
11/13 首页 上一页 9 10 11 12 13 下一页 尾页 |