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