Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="whereStr">以where 开始</param>
 /// <returns></returns>
 public static IList <Mongo_PersonBill> Select(Expression <Func <Mongo_PersonBill, bool> > filter)
 {
     try
     {
         using (var access = new Mongo_PersonBillAccess())
         {
             return(access.Select(filter));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #2
0
 public static int Update(Expression <Func <Mongo_PersonBill, bool> > filter, Mongo_PersonBill obj)
 {
     try
     {
         using (var access = new Mongo_PersonBillAccess())
         {
             return(access.Update(filter, obj));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #3
0
 public static void BatchInsert(IList <Mongo_PersonBill> list)
 {
     try
     {
         using (var access = new Mongo_PersonBillAccess())
         {
             access.BatchInsert(list);
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #4
0
 public static string Insert(Mongo_PersonBill obj)
 {
     try
     {
         using (var access = new Mongo_PersonBillAccess())
         {
             return(access.Insert(obj));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Example #5
0
 public static IList <Mongo_PersonBill> SelectPage(SortDefinition <Mongo_PersonBill> order, Expression <Func <Mongo_PersonBill, bool> > filter, int pageIndex, int pageSize, out int rowCount)
 {
     try
     {
         using (var access = new Mongo_PersonBillAccess())
         {
             return(access.SelectPage(order, filter, pageIndex, pageSize, out rowCount));
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }