/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="dbType">数据库类型</param> /// <param name="whereField">条件字段</param> /// <param name="orderField">排序字段</param> /// <returns>返回JQResource实体列表</returns> public List<JQResourceModel> GetJQResourceList(DataBaseType dbType,JQResourceWhereFields whereField,JQResourceOrderFields orderField) { List<JQResourceWhereFields> whereFields = new List<JQResourceWhereFields>(); if(whereField !=null) { whereFields.Add(whereField); } List<JQResourceOrderFields> orderFields = new List<JQResourceOrderFields>(); if(orderField !=null) { orderFields.Add(orderField); } return dataAccess.GetJQResourceList(dbType,null,whereFields,orderFields); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="whereFields">条件字段</param> /// <returns>返回JQResource实体列表</returns> public List<JQResourceModel> GetJQResourceList(JQResourceWhereFields whereFields) { return dataAccess.GetJQResourceList(whereFields); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="dbType">数据库类型</param> /// <param name="whereFields">条件字段</param> /// <returns>返回JQResource实体列表</returns> public List<JQResourceModel> GetJQResourceList(DataBaseType dbType,JQResourceWhereFields whereFields) { return dataAccess.GetJQResourceList(dbType,whereFields); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="where">条件字段</param> /// <returns>返回JQResource表格</returns> public DataTable GetJQResourceTable(JQResourceWhereFields where) { return GetJQResourceTable(DataBaseType.Read,where); }
/// <summary> /// 自定义删除 /// </summary> /// <param name="whereField">删除条件</param> /// <returns>执行成功返回true,否则为false</returns> public bool Delete(JQResourceWhereFields whereField) { List<JQResourceWhereFields> whereFields = new List<JQResourceWhereFields> (); whereFields.Add(whereField); return dataAccess.Delete(whereFields); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="dbType">数据库类型</param> /// <param name="whereFields">条件字段</param> /// <returns>返回JQResource表格</returns> public DataTable GetJQResourceTable(DataBaseType dbType,JQResourceWhereFields whereFields) { return dataAccess.GetJQResourceTable(dbType,whereFields); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="dbType">数据库类型</param> /// <param name="topNumber">Top数量</param> /// <param name="whereField">条件字段</param> /// <param name="orderField">排序字段</param> /// <returns>返回JQResource表格</returns> public DataTable GetTopJQResourceTable(DataBaseType dbType,int topNumber,JQResourceWhereFields whereField,JQResourceOrderFields orderField) { List<JQResourceWhereFields> whereFields = new List<JQResourceWhereFields>(); if(whereField !=null) { whereFields.Add(whereField); } List<JQResourceOrderFields> orderFields = new List<JQResourceOrderFields>(); if(orderField !=null) { orderFields.Add(orderField); } return dataAccess.GetTopJQResourceTable(dbType,topNumber,null,whereFields,orderFields); }
/// <summary> /// 自定义删除 /// </summary> /// <param name="where">删除条件</param> /// <returns>执行成功返回true,否则为false</returns> public bool Delete(JQResourceWhereFields where) { List<JQResourceWhereFields> wheres = new List<JQResourceWhereFields> (); wheres.Add(where); return Delete(wheres); }
/// <summary> /// 自定义删除 /// </summary> /// <param name="where">删除条件</param> /// <param name="transaction">事务</param> /// <returns>执行成功返回true,否则为false</returns> public bool Delete(JQResourceWhereFields where,DbTransaction transaction) { List<JQResourceWhereFields> wheres = new List<JQResourceWhereFields> (); wheres.Add(where); return Delete(wheres,transaction); }
/// <summary> /// 自定义修改 /// </summary> /// <param name="update">更新字段</param> /// <param name="where">条件字段</param> /// <param name="transaction">事务</param> /// <returns>执行成功返回true,否则为false</returns> public bool Update(List<JQResourceFieldValuePair> update, JQResourceWhereFields where,DbTransaction transaction) { List<JQResourceWhereFields> wheres = new List<JQResourceWhereFields>(); wheres.Add(where); return Update(update, wheres,transaction); }
/// <summary> /// 自定义修改 /// </summary> /// <param name="update">更新字段</param> /// <param name="where">条件字段</param> /// <param name="transaction">事务</param> /// <returns>执行成功返回true,否则为false</returns> public bool Update(JQResourceFieldValuePair update,JQResourceWhereFields where,DbTransaction transaction) { List<JQResourceFieldValuePair> updates=new List<JQResourceFieldValuePair> (); if(update !=null) { updates.Add(update); } List<JQResourceWhereFields> wheres = new List<JQResourceWhereFields>(); if(where !=null) { wheres.Add(where); } return Update(updates,wheres,transaction); }
/// <summary> /// 自定义修改 /// </summary> /// <param name="update">更新字段</param> /// <param name="where">条件字段</param> /// <returns>执行成功返回true,否则为false</returns> public bool Update(List<JQResourceFieldValuePair> update,JQResourceWhereFields where) { List<JQResourceWhereFields> wheres = new List<JQResourceWhereFields>(); wheres.Add(where); return Update(update, wheres); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="whereField">条件字段</param> /// <param name="orderField">排序字段</param> /// <returns>返回JQResource表格</returns> public DataTable GetJQResourceTable(JQResourceWhereFields whereField,JQResourceOrderFields orderField) { return GetJQResourceTable(DataBaseType.Read,whereField,orderField); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="dbType">数据库类型</param> /// <param name="whereField">条件字段</param> /// <param name="orderField">排序字段</param> /// <returns>返回JQResource表格</returns> public DataTable GetJQResourceTable(DataBaseType dbType,JQResourceWhereFields whereField,JQResourceOrderFields orderField) { List<JQResourceWhereFields> whereFields = new List<JQResourceWhereFields>(); if(whereField !=null) { whereFields.Add(whereField); } List<JQResourceOrderFields> orderFields = new List<JQResourceOrderFields>(); if(orderField !=null) { orderFields.Add(orderField); } return GetJQResourceTable(dbType,null,whereFields,orderFields); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="whereFields">条件字段</param> /// <returns>返回JQResource表格</returns> public DataTable GetJQResourceTable(JQResourceWhereFields whereFields) { return dataAccess.GetJQResourceTable(whereFields); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="dbType">数据库类型</param> /// <param name="where">条件字段</param> /// <returns>返回JQResource实体列表</returns> public List<JQResourceModel> GetJQResourceList(DataBaseType dbType,JQResourceWhereFields where) { List<JQResourceWhereFields> whereFields = new List<JQResourceWhereFields>(); whereFields.Add(where); return GetJQResourceList(dbType,null,whereFields,null); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="whereField">条件字段</param> /// <param name="orderField">排序字段</param> /// <returns>返回JQResource表格</returns> public DataTable GetJQResourceTable(JQResourceWhereFields whereField,JQResourceOrderFields orderField) { List<JQResourceWhereFields> whereFields = new List<JQResourceWhereFields>(); if(whereField !=null) { whereFields.Add(whereField); } List<JQResourceOrderFields> orderFields = new List<JQResourceOrderFields>(); if(orderField !=null) { orderFields.Add(orderField); } return dataAccess.GetJQResourceTable(null,whereFields,orderFields); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="where">条件字段</param> /// <returns>返回JQResource实体列表</returns> public List<JQResourceModel> GetJQResourceList(JQResourceWhereFields where) { return GetJQResourceList(DataBaseType.Read,where); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="topNumber">Top数量</param> /// <param name="whereField">条件字段</param> /// <param name="orderField">排序字段</param> /// <returns>返回JQResource实体列表</returns> public List<JQResourceModel> GetTopJQResourceList(int topNumber,JQResourceWhereFields whereField,JQResourceOrderFields orderField) { List<JQResourceWhereFields> whereFields = new List<JQResourceWhereFields>(); if(whereField !=null) { whereFields.Add(whereField); } List<JQResourceOrderFields> orderFields = new List<JQResourceOrderFields>(); if(orderField !=null) { orderFields.Add(orderField); } return dataAccess.GetTopJQResourceList(topNumber,null,whereFields,orderFields); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="whereField">条件字段</param> /// <param name="orderField">排序字段</param> /// <returns>返回JQResource实体列表</returns> public List<JQResourceModel> GetJQResourceList(JQResourceWhereFields whereField,JQResourceOrderFields orderField) { return GetJQResourceList(DataBaseType.Read,whereField,orderField); }
/// <summary> /// 自定义修改 /// </summary> /// <param name="updateField">更新字段</param> /// <param name="whereField">条件字段</param> /// <returns>执行成功返回true,否则为false</returns> public bool Update(JQResourceFieldValuePair updateField, JQResourceWhereFields whereField) { List<JQResourceFieldValuePair> updateFields=new List<JQResourceFieldValuePair>(); List<JQResourceWhereFields> whereFields= new List<JQResourceWhereFields>(); updateFields.Add(updateField); whereFields.Add(whereField); return dataAccess.Update(updateFields,whereFields); }
/// <summary> /// JQResource 自定义查询操作 /// </summary> /// <param name="dbType">数据库类型</param> /// <param name="where">条件字段</param> /// <returns>返回JQResource表格</returns> public DataTable GetJQResourceTable(DataBaseType dbType,JQResourceWhereFields where) { List<JQResourceWhereFields> whereFields = new List<JQResourceWhereFields>(); whereFields.Add(where); return GetJQResourceTable(dbType,null,whereFields,null); }