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