Exemple #1
0
 /// <summary>
 /// 查询数据列表、返回 DataTable
 /// </summary>
 /// <returns></returns>
 public DataTable FindTable()
 {
     return(DataFactory.Database().FindTable <T>());
 }
Exemple #2
0
 /// <summary>
 /// 查询数据、返回最大数
 /// </summary>
 /// <param name="propertyName">实体属性名称</param>
 /// <param name="WhereSql">条件</param>
 /// <returns></returns>
 public object FindMax(string propertyName, string WhereSql)
 {
     return(DataFactory.Database().FindMax <T>(propertyName, WhereSql));
 }
Exemple #3
0
 /// <summary>
 /// 查询数据、返回最大数
 /// </summary>
 /// <param name="strSql">Sql语句</param>
 /// <returns></returns>
 public object FindMaxBySql(string strSql)
 {
     return(DataFactory.Database().FindMaxBySql(strSql));
 }
Exemple #4
0
 /// <summary>
 /// 查询数据、返回条数
 /// </summary>
 /// <param name="WhereSql">条件</param>
 /// <param name="parameters">sql语句对应参数</param>
 /// <returns></returns>
 public int FindCount(string WhereSql, DbParameter[] parameters)
 {
     return(DataFactory.Database().FindCount <T>(WhereSql, parameters));
 }
Exemple #5
0
 /// <summary>
 /// 查询数据、返回条数
 /// </summary>
 /// <param name="strSql">Sql语句</param>
 /// <param name="parameters">sql语句对应参数</param>
 /// <returns></returns>
 public int FindCountBySql(string strSql, DbParameter[] parameters)
 {
     return(DataFactory.Database().FindCountBySql(strSql, parameters));
 }
Exemple #6
0
 /// <summary>
 /// 查询数据、返回条数
 /// </summary>
 /// <returns></returns>
 public int FindCount()
 {
     return(DataFactory.Database().FindCount <T>());
 }
Exemple #7
0
 /// <summary>
 /// 查询数据、返回条数
 /// </summary>
 /// <param name="WhereSql">条件</param>
 /// <returns></returns>
 public int FindCount(string WhereSql)
 {
     return(DataFactory.Database().FindCount <T>(WhereSql));
 }
Exemple #8
0
 /// <summary>
 /// 查询数据列表、返回 DataTable
 /// </summary>
 /// <param name="procName">存储过程</param>
 /// <returns></returns>
 public DataTable FindTableByProc(string procName)
 {
     return(DataFactory.Database().FindTableByProc(procName));
 }
Exemple #9
0
 /// <summary>
 /// 查询数据列表、返回DataSet
 /// </summary>
 /// <param name="strSql">Sql语句</param>
 /// <returns></returns>
 public DataSet FindDataSetBySql(string strSql)
 {
     return(DataFactory.Database().FindDataSetBySql(strSql));
 }
Exemple #10
0
 /// <summary>
 /// 查询数据列表、返回 DataTable
 /// </summary>
 /// <param name="strSql">Sql语句</param>
 /// <param name="parameters">sql语句对应参数</param>
 /// <returns></returns>
 public DataTable FindTableBySql(string strSql, DbParameter[] parameters)
 {
     return(DataFactory.Database().FindTableBySql(strSql, parameters));
 }
Exemple #11
0
 /// <summary>
 /// 执行SQL语句
 /// </summary>
 /// <param name="strSql">Sql语句</param>
 /// <returns></returns>
 public int ExecuteBySql(StringBuilder strSql)
 {
     return(DataFactory.Database().ExecuteBySql(strSql));
 }
Exemple #12
0
 /// <summary>
 /// 查询数据列表、返回 DataTable
 /// </summary>
 /// <param name="strSql">Sql语句</param>
 /// <returns></returns>
 public DataTable FindTableBySql(string strSql)
 {
     return(DataFactory.Database().FindTableBySql(strSql));
 }
Exemple #13
0
 /// <summary>
 /// 查询数据列表、返回 DataTable
 /// </summary>
 /// <param name="WhereSql">条件</param>
 /// <param name="parameters">sql语句对应参数</param>
 /// <returns></returns>
 public DataTable FindTable(string WhereSql, DbParameter[] parameters)
 {
     return(DataFactory.Database().FindTable <T>(WhereSql, parameters));
 }
Exemple #14
0
 /// <summary>
 /// 查询数据列表、返回 DataTable
 /// </summary>
 /// <param name="WhereSql">条件</param>
 /// <returns></returns>
 public DataTable FindTable(string WhereSql)
 {
     return(DataFactory.Database().FindTable <T>(WhereSql));
 }
Exemple #15
0
 /// <summary>
 /// 查询对象、返回实体
 /// </summary>
 /// <param name="strSql">Sql语句</param>
 /// <returns></returns>
 public T FindEntityBySql(string strSql)
 {
     return(DataFactory.Database().FindEntityBySql <T>(strSql));
 }
Exemple #16
0
 /// <summary>
 /// 查询数据列表、返回DataSet
 /// </summary>
 /// <param name="strSql">存储过程</param>
 /// <returns></returns>
 public DataSet FindDataSetByProc(string procName)
 {
     return(DataFactory.Database().FindDataSetByProc(procName));
 }
Exemple #17
0
 /// <summary>
 /// 查询对象、返回实体
 /// </summary>
 /// <param name="strSql">Sql语句</param>
 /// <param name="parameters">sql语句对应参数</param>
 /// <returns></returns>
 public T FindEntityBySql(string strSql, DbParameter[] parameters)
 {
     return(DataFactory.Database().FindEntityBySql <T>(strSql, parameters));
 }
Exemple #18
0
 /// <summary>
 /// 查询数据列表、返回DataSet
 /// </summary>
 /// <param name="strSql">存储过程</param>
 /// <param name="parameters">sql语句对应参数</param>
 /// <returns></returns>
 public DataSet FindDataSetByProc(string procName, DbParameter[] parameters)
 {
     return(DataFactory.Database().FindDataSetByProc(procName, parameters));
 }
Exemple #19
0
 /// <summary>
 /// 查询数据、返回条数
 /// <param name="propertyName">实体属性名称</param>
 /// <param name="propertyValue">字段值</param>
 /// </summary>
 /// <returns></returns>
 public int FindCount(string propertyName, string propertyValue)
 {
     return(DataFactory.Database().FindCount <T>(propertyName, propertyValue));
 }
Exemple #20
0
 /// <summary>
 /// 查询对象、返回实体
 /// </summary>
 /// <param name="propertyValue">主键值</param>
 /// <returns></returns>
 public T FindEntity(object propertyValue)
 {
     return(DataFactory.Database().FindEntity <T>(propertyValue));
 }
Exemple #21
0
 /// <summary>
 /// 执行SQL语句
 /// </summary>
 /// <param name="strSql">Sql语句</param>
 /// <param name="parameters">sql语句对应参数</param>
 /// <returns></returns>
 public int ExecuteBySql(StringBuilder strSql, DbParameter[] parameters)
 {
     return(DataFactory.Database().ExecuteBySql(strSql, parameters));
 }
Exemple #22
0
 /// <summary>
 /// 执行SQL语句
 /// </summary>
 /// <param name="strSql">Sql语句</param>
 /// <param name="isOpenTrans">事务对象</param>
 /// <returns></returns>
 public int ExecuteBySql(StringBuilder strSql, DbTransaction isOpenTrans)
 {
     return(DataFactory.Database().ExecuteBySql(strSql, isOpenTrans));
 }
Exemple #23
0
 /// <summary>
 /// 查询数据、返回条数
 /// </summary>
 /// <param name="strSql">Sql语句</param>
 /// <returns></returns>
 public int FindCountBySql(string strSql)
 {
     return(DataFactory.Database().FindCountBySql(strSql));
 }
Exemple #24
0
 /// <summary>
 /// 查询对象、返回实体
 /// </summary>
 /// <param name="propertyName">实体属性名称</param>
 /// <param name="propertyValue">字段值</param>
 /// <returns></returns>
 public T FindEntity(string propertyName, object propertyValue)
 {
     return(DataFactory.Database().FindEntity <T>(propertyName, propertyValue));
 }
Exemple #25
0
 /// <summary>
 /// 查询数据、返回最大数
 /// </summary>
 /// <param name="propertyName">实体属性名称</param>
 /// <returns></returns>
 public object FindMax(string propertyName)
 {
     return(DataFactory.Database().FindMax <T>(propertyName));
 }
Exemple #26
0
 /// <summary>
 /// 查询对象、返回实体
 /// </summary>
 /// <param name="WhereSql">条件</param>
 /// <returns></returns>
 public T FindEntityByWhere(string WhereSql)
 {
     return(DataFactory.Database().FindEntity <T>(WhereSql));
 }
Exemple #27
0
 /// <summary>
 /// 查询数据、返回最大数
 /// </summary>
 /// <param name="propertyName">实体属性名称</param>
 /// <param name="WhereSql">条件</param>
 /// <param name="parameters">sql语句对应参数</param>
 /// <returns></returns>
 public object FindMax(string propertyName, string WhereSql, DbParameter[] parameters)
 {
     return(DataFactory.Database().FindMax <T>(propertyName, WhereSql, parameters));
 }
Exemple #28
0
 /// <summary>
 /// 查询对象、返回实体
 /// </summary>
 /// <param name="WhereSql">条件</param>
 /// <param name="parameters">sql语句对应参数</param>
 /// <returns></returns>
 public T FindEntityByWhere(string WhereSql, DbParameter[] parameters)
 {
     return(DataFactory.Database().FindEntity <T>(WhereSql, parameters));
 }
Exemple #29
0
 /// <summary>
 /// 查询数据、返回最大数
 /// </summary>
 /// <param name="strSql">Sql语句</param>
 /// <param name="parameters">sql语句对应参数</param>
 /// <returns></returns>
 public object FindMaxBySql(string strSql, DbParameter[] parameters)
 {
     return(DataFactory.Database().FindMaxBySql(strSql, parameters));
 }
Exemple #30
0
 /// <summary>
 /// 查询数据列表、返回 DataTable
 /// </summary>
 /// <param name="Top">显示条数</param>
 /// <param name="WhereSql">条件</param>
 /// <param name="parameters">sql语句对应参数</param>
 /// <returns></returns>
 public DataTable FindTableTop(int Top, string WhereSql, DbParameter[] parameters)
 {
     return(DataFactory.Database().FindTableTop <T>(Top, WhereSql, parameters));
 }