示例#1
0
        ///<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);
        }
示例#2
0
        ///<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);
        }
示例#3
0
        ///<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)));
        }
示例#4
0
        ///<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)));
        }
示例#5
0
        ///<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)));
        }
示例#6
0
        ///<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)));
        }
示例#7
0
        ///<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)));
        }
示例#8
0
        ///<summary>
        ///Get all records count.
        ///</summary>
        public static int GetAllRecordsCount()
        {
            DO_AirfareMarkupMode da = new DO_AirfareMarkupMode();

            return(da.GetRecordsCount());
        }
示例#9
0
        ///<summary>
        ///Get all records.
        ///</summary>
        public static DO_AirfareMarkupMode.UOList_AirfareMarkupMode GetAllList()
        {
            DO_AirfareMarkupMode da = new DO_AirfareMarkupMode();

            return(da.GetAllList());
        }