/// <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; } }
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; } }
public static void BatchInsert(IList <Mongo_PersonBill> list) { try { using (var access = new Mongo_PersonBillAccess()) { access.BatchInsert(list); } } catch (Exception ex) { throw ex; } }
public static string Insert(Mongo_PersonBill obj) { try { using (var access = new Mongo_PersonBillAccess()) { return(access.Insert(obj)); } } catch (Exception ex) { throw ex; } }
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; } }