Exemplo n.º 1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="command"></param>
 /// <param name="pageSize"></param>
 /// <param name="pageIndex"></param>
 /// <returns></returns>
 public IDataReader ExecuteReader(IDbCommand command, int pageSize, int pageIndex)
 {
     SqlProvider.WrapPaging(this, command, pageSize, pageIndex);
     return(ExecuteReader(command));
 }
Exemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="command"></param>
 /// <param name="pageSize"></param>
 /// <param name="pageIndex"></param>
 /// <returns></returns>
 public DataTable ExecuteDataTable(IDbCommand command, int pageSize, int pageIndex)
 {
     SqlProvider.WrapPaging(this, command, pageSize, pageIndex);
     return(ExecuteDataTable(command));
 }
Exemplo n.º 3
0
 public bool Exists(object entityType, ICondition condition)
 {
     return(SqlProvider.Exists(this, MappingProvider, null, entityType, condition));
 }
Exemplo n.º 4
0
 public int SelectCount(object entityType, ICondition condition)
 {
     return(SqlProvider.SelectCount(this, MappingProvider, null, entityType, condition));
 }
Exemplo n.º 5
0
        public int SelectCount <T>(ICondition condition)
        {
            object entityType = typeof(T);

            return(SqlProvider.SelectCount(this, MappingProvider, null, entityType, condition));
        }
Exemplo n.º 6
0
 public int BatchDelete(object entityType, ICondition condition)
 {
     return(SqlProvider.Delete(this, MappingProvider, null, entityType, condition));
 }