///<summary> ///Get object by Id. ///</summary> public static DO_SaleShop_payment.UO_SaleShop_payment GetObjectById(System.Int32 pay_id) { DO_SaleShop_payment da = new DO_SaleShop_payment(); DO_SaleShop_payment.UOList_SaleShop_payment l = da.GetList(GetConditionsById(pay_id)); return(l.Count > 0 ? l[0] : null); }
///<summary> ///Get object by primary key string. ///</summary> public static DO_SaleShop_payment.UO_SaleShop_payment GetObjectByPrimaryKeyString(string primaryKeyString) { DO_SaleShop_payment da = new DO_SaleShop_payment(); DO_SaleShop_payment.UOList_SaleShop_payment l = da.GetList(GetConditionsByPrimaryKeyString(primaryKeyString)); return(l.Count > 0 ? l[0] : null); }
///<summary> ///Delete object by primary key string(with transation). ///</summary> public static int DeleteByPrimaryKeyString(string primaryKeyString, IDbConnection connection, IDbTransaction transaction) { DO_SaleShop_payment da = new DO_SaleShop_payment(); return(da.Delete(connection, transaction, GetConditionsByPrimaryKeyString(primaryKeyString))); }
///<summary> ///Delete object by primary key string. ///</summary> public static int DeleteByPrimaryKeyString(string primaryKeyString) { DO_SaleShop_payment da = new DO_SaleShop_payment(); return(da.Delete(GetConditionsByPrimaryKeyString(primaryKeyString))); }
///<summary> ///Delete object by primary key(with transation). ///</summary> public static int Delete(System.Int32 pay_id, IDbConnection connection, IDbTransaction transaction) { DO_SaleShop_payment da = new DO_SaleShop_payment(); return(da.Delete(connection, transaction, GetConditionsByPrimaryKey(pay_id))); }
///<summary> ///Delete object by primary key. ///</summary> public static int Delete(System.Int32 pay_id) { DO_SaleShop_payment da = new DO_SaleShop_payment(); return(da.Delete(GetConditionsByPrimaryKey(pay_id))); }
///<summary> ///Get records count. ///</summary> public static int GetRecordsCount(DO_SaleShop_payment.UO_SaleShop_payment parameterObj, bool isAnd, TokenTypes tokenTypes, Dictionary <DO_SaleShop_payment.Columns, TokenTypes> extTokens) { DO_SaleShop_payment da = new DO_SaleShop_payment(); return(da.GetRecordsCount(GetConditionsByObject(parameterObj, isAnd, tokenTypes, extTokens))); }
///<summary> ///Get all records count. ///</summary> public static int GetAllRecordsCount() { DO_SaleShop_payment da = new DO_SaleShop_payment(); return(da.GetRecordsCount()); }
///<summary> ///Get all records. ///</summary> public static DO_SaleShop_payment.UOList_SaleShop_payment GetAllList() { DO_SaleShop_payment da = new DO_SaleShop_payment(); return(da.GetAllList()); }