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

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

            return(this.FindListByQueryBuilder(dynamicQueryGenerator));
        }
Exemplo n.º 2
0
        internal static SPUpperWrapper ConvertEntityToWrapper(SPUpperEntity entity)
        {
            if (entity == null)
            {
                return(null);
            }

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

            return(new SPUpperWrapper(entity));
        }
        public List <SPAdvertisementEntity> GetPageList_By_UpperID_SPUpperEntity(string orderByColumnName, bool isDesc, SPUpperEntity fkentity, PageQueryParams pageQueryParams)
        {
            NHibernateDynamicQueryGenerator <SPAdvertisementEntity> dynamicQueryGenerator = this.GetNewQueryBuilder();

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

            AddDefaultOrderByToQueryGenerator(orderByColumnName, isDesc, dynamicQueryGenerator);

            return(FindListByPageByQueryBuilder(dynamicQueryGenerator, pageQueryParams));
        }
 public List <SPAdvertisementEntity> FindAllByUpperID(SPUpperEntity _upperID)
 {
     return(this.SelfDataObj.GetList_By_UpperID_SPUpperEntity(_upperID));
 }
 public List <SPAdvertisementEntity> FindAllByOrderByAndFilterAndUpperID(string orderByColumnName, bool isDesc, SPUpperEntity _upperID, PageQueryParams pageQueryParams)
 {
     return(this.SelfDataObj.GetPageList_By_UpperID_SPUpperEntity(orderByColumnName, isDesc, _upperID, pageQueryParams));
 }
Exemplo n.º 6
0
 internal SPUpperWrapper(SPUpperEntity entityObj)
     : base(entityObj)
 {
 }
 public List <SPDayReportEntity> FindAllByUperID(SPUpperEntity _uperID)
 {
     return(this.SelfDataObj.GetList_By_UperID_SPUpperEntity(_uperID));
 }
Exemplo n.º 8
0
 public List <SPChannelEntity> FindAllByUpperID(SPUpperEntity _upperID)
 {
     return(this.SelfDataObj.GetList_By_UpperID_SPUpperEntity(_upperID));
 }