public List <SPAdPackEntity> GetList_By_SPAdID_SPAdvertisementEntity(SPAdvertisementEntity fkentity)
        {
            NHibernateDynamicQueryGenerator <SPAdPackEntity> dynamicQueryGenerator = this.GetNewQueryBuilder();

            dynamicQueryGenerator.AddWhereClause(PROPERTY_SPADID.Eq(fkentity));

            return(this.FindListByQueryBuilder(dynamicQueryGenerator));
        }
Пример #2
0
        internal static SPAdvertisementWrapper ConvertEntityToWrapper(SPAdvertisementEntity entity)
        {
            if (entity == null)
            {
                return(null);
            }

            if (entity.Id == 0)
            {
                return(null);
            }

            return(new SPAdvertisementWrapper(entity));
        }
Пример #3
0
 internal SPAdvertisementWrapper(SPAdvertisementEntity entityObj)
     : base(entityObj)
 {
 }
        public List <SPAdPackEntity> GetPageList_By_SPAdID_SPAdvertisementEntity(string orderByColumnName, bool isDesc, SPAdvertisementEntity fkentity, PageQueryParams pageQueryParams)
        {
            NHibernateDynamicQueryGenerator <SPAdPackEntity> dynamicQueryGenerator = this.GetNewQueryBuilder();

            dynamicQueryGenerator.AddWhereClause(PROPERTY_SPADID.Eq(fkentity));

            AddDefaultOrderByToQueryGenerator(orderByColumnName, isDesc, dynamicQueryGenerator);

            return(FindListByPageByQueryBuilder(dynamicQueryGenerator, pageQueryParams));
        }
Пример #5
0
 public List <SPAdPackEntity> FindAllBySPAdID(SPAdvertisementEntity _sPAdID)
 {
     return(this.SelfDataObj.GetList_By_SPAdID_SPAdvertisementEntity(_sPAdID));
 }
Пример #6
0
 public List <SPAdPackEntity> FindAllByOrderByAndFilterAndSPAdID(string orderByColumnName, bool isDesc, SPAdvertisementEntity _sPAdID, PageQueryParams pageQueryParams)
 {
     return(this.SelfDataObj.GetPageList_By_SPAdID_SPAdvertisementEntity(orderByColumnName, isDesc, _sPAdID, pageQueryParams));
 }