本文整理汇总了C#中IQueryable.MatchesRequirement方法的典型用法代码示例。如果您正苦于以下问题:C# IQueryable.MatchesRequirement方法的具体用法?C# IQueryable.MatchesRequirement怎么用?C# IQueryable.MatchesRequirement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IQueryable
的用法示例。
在下文中一共展示了IQueryable.MatchesRequirement方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BuildSearchQuery
public IQueryable<Core.Objects.Property> BuildSearchQuery(List<SearchParameter> parameters, IQueryable<Core.Objects.Property> query)
{
var garden = parameters.GardenOrDefault();
if (garden.IsNotNull())
{
if (garden.ParameterValue.IsNotNullOrEmpty())
{
return query.MatchesRequirement(PropertyDetailType.Garden, garden.ParameterValue.ToUpper());
}
}
return query;
}
示例2: BuildSearchQuery
public IQueryable<Application> BuildSearchQuery(List<SearchParameter> parameters, IQueryable<Application> query)
{
var garden = parameters.GardenOrDefault();
if (garden.IsNotNull())
{
if (garden.ParameterValue.IsNotNullOrEmpty())
{
return query.MatchesRequirement(RequirementType.Garden, garden.ParameterValue.ToUpper());
}
}
return query;
}
示例3: BuildSearchQuery
public IQueryable<Core.Objects.Property> BuildSearchQuery(List<SearchParameter> parameters, IQueryable<Core.Objects.Property> query)
{
var petFriendly = parameters.PetFriendlyOrDefault();
if (petFriendly.IsNotNull())
{
if (petFriendly.ParameterValue.IsNotNullOrEmpty())
{
return query.MatchesRequirement(PropertyDetailType.PetFriendly, petFriendly.ParameterValue.ToUpper());
}
}
return query;
}
示例4: BuildSearchQuery
public IQueryable<Application> BuildSearchQuery(List<SearchParameter> parameters, IQueryable<Application> query)
{
var furnished = parameters.FurnishedOrDefault();
if (furnished.IsNotNull())
{
if (furnished.ParameterValue.IsNotNullOrEmpty())
{
return query.MatchesRequirement(RequirementType.Furnished, furnished.ParameterValue.ToUpper());
}
}
return query;
}
示例5: BuildSearchQuery
public IQueryable<Core.Objects.Property> BuildSearchQuery(List<SearchParameter> parameters, IQueryable<Core.Objects.Property> query)
{
var whiteGoods = parameters.WhiteGoodsOrDefault();
if (whiteGoods.IsNotNull())
{
if (whiteGoods.ParameterValue.IsNotNullOrEmpty())
{
return query.MatchesRequirement(PropertyDetailType.WhiteGoods, whiteGoods.ParameterValue.ToUpper());
}
}
return query;
}
示例6: BuildSearchQuery
public IQueryable<Application> BuildSearchQuery(List<SearchParameter> parameters, IQueryable<Application> query)
{
var petFriendly = parameters.PetFriendlyOrDefault();
if (petFriendly.IsNotNull())
{
if (petFriendly.ParameterValue.IsNotNullOrEmpty())
{
return query.MatchesRequirement(RequirementType.PetFriendly, petFriendly.ParameterValue.ToUpper());
}
}
return query;
}
示例7: BuildSearchQuery
public IQueryable<Application> BuildSearchQuery(List<SearchParameter> parameters, IQueryable<Application> query)
{
var whiteGoods = parameters.WhiteGoodsOrDefault();
if (whiteGoods.IsNotNull())
{
if (whiteGoods.ParameterValue.IsNotNullOrEmpty())
{
return query.MatchesRequirement(RequirementType.WhiteGoods, whiteGoods.ParameterValue.ToUpper());
}
}
return query;
}