public GetUsableCitiesByStateIdCommand(long?stateId, SearchType searchType)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetUsableCitiesByStateId;
     this._stateId            = stateId;
     this._searchType         = searchType;
     base.CacheKey            = CachedBaseCommand <List <City> > .GetCacheKey(new string[] { base.StoredProcedureName, this._stateId.ToString(), searchType.ToString() });
 }
 public GetDefaultAmenitiesCommand(CommunityUnitType unitType)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetCommunityUnitAmenityType;
     this.ParameterName       = "@CommunityUnitClassId";
     this.SpParameter         = new int?(unitType);
     base.CacheKey            = CachedBaseCommand <List <Amenity> > .GetCacheKey(new string[] { base.StoredProcedureName, this.ParameterName, this.SpParameter.ToString() });
 }
 public GetFloorPlansByCommunityIdCommand(long communityId)
 {
     base.StoredProcedureName = ClientStoredProcedures.SpGetCommunityUnitsByCommunity;
     this._communityId        = communityId;
     this._floorPlans         = new List <FloorPlan>();
     base.CacheKey            = CachedBaseCommand <List <FloorPlan> > .GetCacheKey(new string[] { base.StoredProcedureName, this._communityId.ToString(), CommunityUnitType.FloorPlan.ToString() });
 }
 public GetUsableStatesCommand(long?countryId, MSLivingChoices.Entities.Admin.Enums.SearchType searchType)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetUsableStates;
     this.CountryId           = countryId;
     this.SearchType          = searchType;
     base.CacheKey            = CachedBaseCommand <List <State> > .GetCacheKey(new string[] { base.StoredProcedureName, this.CountryId.ToString(), this.SearchType.ToString() });
 }
示例#5
0
 public GetMarketCopyCommand(SearchCriteria criteria, ListingType?listingType)
 {
     base.StoredProcedureName = ClientStoredProcedures.SpGetMarketCopy;
     this._criteria           = criteria;
     this._listingType        = listingType;
     base.CacheKey            = CachedBaseCommand <string> .GetCacheKey(new string[] { base.StoredProcedureName, this._criteria.ToString(), listingType.ToString() });
 }
 public GetDefaultAmenitiesCommand(CommunityUnitType unitType)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetCommunityUnitAmenityType;
     ParameterName            = "@CommunityUnitClassId";
     SpParameter   = (int)unitType;
     base.CacheKey = CachedBaseCommand <List <Amenity> > .GetCacheKey(base.StoredProcedureName, ParameterName, SpParameter.ToString());
 }
 public GetUsableCitiesCommand(string stateCode, SearchType searchType)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetUsableCities;
     this._stateCode          = stateCode;
     this._searchType         = searchType;
     base.CacheKey            = CachedBaseCommand <List <City> > .GetCacheKey(new string[] { base.StoredProcedureName, this._stateCode, this._searchType.ToString() });
 }
 public GetDefaultAmenitiesCommand(CommunityType communityType)
 {
     base.StoredProcedureName = CommonStoredProcedures.SpGetCommunityAmenityType;
     this.ParameterName       = "@CommunityClassId";
     this.SpParameter         = (int)(communityType);
     base.CacheKey            = CachedBaseCommand <List <Amenity> > .GetCacheKey(new string[] { base.StoredProcedureName, "admin", this.ParameterName, this.SpParameter.ToString() });
 }
示例#9
0
 public GetSpecHomesByCommunityIdCommand(long communityId)
 {
     base.StoredProcedureName = ClientStoredProcedures.SpGetCommunityUnitsByCommunity;
     this._communityId        = communityId;
     this._specHomes          = new List <SpecHome>();
     base.CacheKey            = CachedBaseCommand <List <SpecHome> > .GetCacheKey(new string[] { base.StoredProcedureName, this._communityId.ToString(), CommunityUnitType.SpecHome.ToString() });
 }
示例#10
0
 public SearchServiceProvidersCommand(ServiceProviderSearchModel searchModel)
 {
     base.StoredProcedureName = ClientStoredProcedures.SpSearchServicesMap;
     this._searchModel        = searchModel;
     this._searchModel.Result = new ServiceProviderSearchResult();
     base.CacheKey            = CachedBaseCommand <ServiceProviderSearchModel> .GetCacheKey(new string[] { base.StoredProcedureName, this._searchModel.ToString() });
 }
 public GetZipAutocompleteCommand(SearchCriteria searchModel, int maxCount)
 {
     this._searchModel        = searchModel;
     this._maxCount           = maxCount;
     base.StoredProcedureName = ClientStoredProcedures.GetSearchAutocompleteVariantsForZip;
     base.CacheKey            = CachedBaseCommand <List <SearchCriteria> > .GetCacheKey(new string[] { base.StoredProcedureName, this._searchModel.ToString(), this._maxCount.ToString() });
 }
示例#12
0
 public GetNearbyCitiesCommand(NearbySearchModel searchModel, ListingType?listingType)
 {
     this._searchModel        = searchModel;
     this._listingType        = listingType;
     this._searchResult       = new NearbySearchResult();
     base.StoredProcedureName = ClientStoredProcedures.SpGetCrosslinkCities;
     base.CacheKey            = CachedBaseCommand <NearbySearchResult> .GetCacheKey(new string[] { base.StoredProcedureName, this._searchModel.ToString(), this._listingType.ToString() });
 }
 public GetCountrySearchStubCommand(CountryStubSearchModel searchModel, ListingType?listingType = null)
 {
     this._searchModel        = searchModel;
     this._listingType        = listingType;
     this._searchResult       = new List <CityListingsInfo>();
     base.StoredProcedureName = ClientStoredProcedures.SpGetCountryStubCities;
     base.CacheKey            = CachedBaseCommand <List <CityListingsInfo> > .GetCacheKey(new string[] { base.StoredProcedureName, this._searchModel.ToString(), this._listingType.ToString() });
 }
示例#14
0
 public GetAdditionalInfoCommand(AdditionalInfoClass additionalInfoClass)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetAdditionalInformationType;
     SpParameter           = (int)additionalInfoClass;
     ParameterName         = "@AdditionalInformationClassId";
     DescriptionColumnName = "Description";
     IdColumnName          = "AdditionalInformationTypeId";
     base.CacheKey         = CachedBaseCommand <List <KeyValuePair <int, string> > > .GetCacheKey(base.StoredProcedureName, SpParameter.ToString(), ParameterName, DescriptionColumnName, IdColumnName);
 }
示例#15
0
 public GetAdditionalInfoCommand(AdditionalInfoClass additionalInfoClass)
 {
     base.StoredProcedureName   = AdminStoredProcedures.SpGetAdditionalInformationType;
     this.SpParameter           = new int?(additionalInfoClass);
     this.ParameterName         = "@AdditionalInformationClassId";
     this.DescriptionColumnName = "Description";
     this.IdColumnName          = "AdditionalInformationTypeId";
     base.CacheKey = CachedBaseCommand <List <KeyValuePair <int, string> > > .GetCacheKey(new string[] { base.StoredProcedureName, this.SpParameter.ToString(), this.ParameterName, this.DescriptionColumnName, this.IdColumnName });
 }
 public SearchCommunitiesCommand(CommunitySearchModel searchModel)
 {
     base.StoredProcedureName = ClientStoredProcedures.SpSearchCommunitiesMap;
     this._searchModel        = searchModel;
     this._searchModel.Result = new CommunitySearchResult()
     {
         Results = new List <Community>()
     };
     base.CacheKey = CachedBaseCommand <CommunitySearchModel> .GetCacheKey(new string[] { base.StoredProcedureName, this._searchModel.ToString() });
 }
示例#17
0
 public GetCitiesCommand(long?stateId)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetCities;
     this.StateId             = stateId;
     base.CacheKey            = CachedBaseCommand <List <City> > .GetCacheKey(new string[] { base.StoredProcedureName, this.StateId.ToString() });
 }
 public GetStatesCommand(long?countryId)
 {
     base.StoredProcedureName = CommonStoredProcedures.SpGetStates;
     this._countryId          = countryId;
     base.CacheKey            = CachedBaseCommand <Dictionary <string, string> > .GetCacheKey(new string[] { base.StoredProcedureName, "client", this._countryId.ToString() });
 }
示例#19
0
 public GetUsableStatesForServicesCommand(long?countryId)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetUsableStatesForServices;
     this._countryId          = countryId;
     base.CacheKey            = CachedBaseCommand <List <State> > .GetCacheKey(new string[] { base.StoredProcedureName, this._countryId.ToString() });
 }
 public ValidateZipCommand(SearchCriteria searchModel)
 {
     this._searchModel        = searchModel;
     base.StoredProcedureName = ClientStoredProcedures.SpValidateZip;
     base.CacheKey            = CachedBaseCommand <SearchCriteria> .GetCacheKey(new string[] { base.StoredProcedureName, this._searchModel.ToString() });
 }
 public GetCompetitiveItemsCommand(bool takeActiveOnly)
 {
     this._takeActiveOnly     = takeActiveOnly;
     base.StoredProcedureName = ClientStoredProcedures.SpGetCompetitiveItems;
     base.CacheKey            = CachedBaseCommand <Dictionary <int, List <CompetitiveItem> > > .GetCacheKey(new string[] { base.StoredProcedureName, this._takeActiveOnly.ToString() });
 }
示例#22
0
 public GetAddressTypesCommand(MSLivingChoices.Entities.Admin.Enums.ServiceType serviceType) : this()
 {
     this.ServiceType = new MSLivingChoices.Entities.Admin.Enums.ServiceType?(serviceType);
     base.CacheKey    = CachedBaseCommand <List <KeyValuePair <int, string> > > .GetCacheKey(new string[] { base.StoredProcedureName, this.CommunityType.ToString(), this.OwnerType.ToString(), this.ServiceType.ToString(), this.IdColumnName, this.DescriptionColumnName });
 }
 public GetStatesCommand(long?countryId)
 {
     base.StoredProcedureName = CommonStoredProcedures.SpGetStates;
     this.CountryId           = countryId;
     base.CacheKey            = CachedBaseCommand <List <State> > .GetCacheKey(new string[] { base.StoredProcedureName, "admin", this.CountryId.ToString() });
 }
 public GetCountiesCommand()
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetCounties;
     base.CacheKey            = CachedBaseCommand <List <County> > .GetCacheKey(new string[] { base.StoredProcedureName });
 }
示例#25
0
 public GetStateByIdCommand(long?stateId)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetStateById;
     this.StateId             = stateId;
     base.CacheKey            = CachedBaseCommand <State> .GetCacheKey(new string[] { base.StoredProcedureName, this.StateId.ToString() });
 }
示例#26
0
 public GetCountryByIdCommand(long?countryId)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetCountryById;
     this.CountryId           = countryId;
     base.CacheKey            = CachedBaseCommand <Country> .GetCacheKey(new string[] { base.StoredProcedureName, this.CountryId.ToString() });
 }
 public GetUsableCitiesForServicesCommand(string stateCode)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetUsableCitiesForServices;
     this._stateCode          = stateCode;
     base.CacheKey            = CachedBaseCommand <List <City> > .GetCacheKey(new string[] { base.StoredProcedureName, this._stateCode });
 }
示例#28
0
 public GetCommunityByUserCommand(int bookId)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetCommunityByBook;
     this._bookId             = bookId;
     base.CacheKey            = CachedBaseCommand <List <KeyValuePair <int, string> > > .GetCacheKey(new string[] { base.StoredProcedureName, this._bookId.ToString() });
 }
示例#29
0
 public GetCountiesServedByIdCommand(long id)
 {
     base.StoredProcedureName = AdminStoredProcedures.SpGetCountiesServedForServices;
     this._id      = id;
     base.CacheKey = CachedBaseCommand <List <County> > .GetCacheKey(new string[] { base.StoredProcedureName, this._id.ToString() });
 }
 public GetServiceByIdCommand(long id)
 {
     base.StoredProcedureName = ClientStoredProcedures.SpGetServiceClientDetail;
     this._id      = id;
     base.CacheKey = CachedBaseCommand <ServiceProvider> .GetCacheKey(new string[] { base.StoredProcedureName, this._id.ToString() });
 }