Example #1
0
        public List <SystemProvinceEntity> GetList_By_CountryID_SystemCountryEntity(SystemCountryEntity fkentity)
        {
            NHibernateDynamicQueryGenerator <SystemProvinceEntity> dynamicQueryGenerator = this.GetNewQueryBuilder();

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

            return(this.FindListByQueryBuilder(dynamicQueryGenerator));
        }
Example #2
0
        internal static SystemCountryWrapper ConvertEntityToWrapper(SystemCountryEntity entity)
        {
            if (entity == null)
            {
                return(null);
            }

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

            return(new SystemCountryWrapper(entity));
        }
Example #3
0
 internal SystemCountryWrapper(SystemCountryEntity entityObj)
     : base(entityObj)
 {
 }
Example #4
0
        public List <SystemProvinceEntity> GetPageList_By_CountryID_SystemCountryEntity(string orderByColumnName, bool isDesc, SystemCountryEntity fkentity, PageQueryParams pageQueryParams)
        {
            NHibernateDynamicQueryGenerator <SystemProvinceEntity> dynamicQueryGenerator = this.GetNewQueryBuilder();

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

            AddDefaultOrderByToQueryGenerator(orderByColumnName, isDesc, dynamicQueryGenerator);

            return(FindListByPageByQueryBuilder(dynamicQueryGenerator, pageQueryParams));
        }
Example #5
0
 public List <SystemProvinceEntity> FindAllByCountryID(SystemCountryEntity _countryID)
 {
     return(this.SelfDataObj.GetList_By_CountryID_SystemCountryEntity(_countryID));
 }
Example #6
0
 public List <SystemProvinceEntity> FindAllByOrderByAndFilterAndCountryID(string orderByColumnName, bool isDesc, SystemCountryEntity _countryID, PageQueryParams pageQueryParams)
 {
     return(this.SelfDataObj.GetPageList_By_CountryID_SystemCountryEntity(orderByColumnName, isDesc, _countryID, pageQueryParams));
 }