예제 #1
0
        ///<summary>
        ///Get object by Id.
        ///</summary>
        public static DO_AirfareLastView.UO_AirfareLastView GetObjectById(System.Int32 Id)
        {
            DO_AirfareLastView da = new DO_AirfareLastView();

            DO_AirfareLastView.UOList_AirfareLastView 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_AirfareLastView.UO_AirfareLastView GetObjectByPrimaryKeyString(string primaryKeyString)
        {
            DO_AirfareLastView da = new DO_AirfareLastView();

            DO_AirfareLastView.UOList_AirfareLastView l = da.GetList(GetConditionsByPrimaryKeyString(primaryKeyString));
            return(l.Count > 0 ? l[0] : null);
        }