public Expression <Func <CharacteristicDataLa, bool> > FindExpression()
 {
     return(PredicateBuilder.True <CharacteristicDataLa>()
            .And(QueryContextUtil.PublicationIdExpression <CharacteristicDataLa>(PublicationId))
            .And(QueryContextUtil.LevelExpression <CharacteristicDataLa>(Level.Local_Authority))
            .And(QueryContextUtil.SchoolTypeExpression <CharacteristicDataLa>(SchoolTypes))
            .And(QueryContextUtil.YearExpression <CharacteristicDataLa>(
                     QueryUtil.YearsQuery(Years, StartYear, EndYear)))
            .And(QueryContextUtil.CharacteristicsQuery <CharacteristicDataLa>(Characteristics)));
 }
예제 #2
0
 public Expression <Func <GeographicData, bool> > FindExpression()
 {
     return(PredicateBuilder.True <GeographicData>()
            .And(QueryContextUtil.PublicationIdExpression <GeographicData>(PublicationId))
            .And(QueryContextUtil.LevelExpression <GeographicData>(Level))
            .And(QueryContextUtil.SchoolTypeExpression <GeographicData>(SchoolTypes))
            .And(QueryContextUtil.YearExpression <GeographicData>(
                     QueryUtil.YearsQuery(Years, StartYear, EndYear)))
            .And(RegionsExpression())
            .And(LocalAuthoritiesExpression())
            .And(SchoolsExpression()));
 }