File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
Nest/QueryDsl/Abstractions/Container Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,17 @@ public class QueryContainerDescriptor<T> : QueryContainer where T : class
10
10
{
11
11
QueryContainerDescriptor < T > Assign ( Action < IQueryContainer > assigner ) => Fluent . Assign ( this , assigner ) ;
12
12
13
- [ Obsolete ( "Scheduled to be removed in 5.0. Setting Strict() at the container level is a noop and must be set at the query level." ) ]
14
- public QueryContainerDescriptor < T > Strict ( bool strict = true ) => this ;
13
+ [ Obsolete ( "Scheduled to be removed in 5.0. Setting Strict() at the container level does not cascade and must be set on each individual query." ) ]
14
+ public QueryContainerDescriptor < T > Strict ( bool strict = true )
15
+ {
16
+ throw new ArgumentException ( "Setting Verbatim() at the container level does not cascade and must be set on each individual query." ) ;
17
+ }
15
18
16
- [ Obsolete ( "Scheduled to be removed in 5.0. Setting Verbatim() at the container level is a noop and must be set at the query level." ) ]
17
- public QueryContainerDescriptor < T > Verbatim ( bool verbatim = true ) => this ;
19
+ [ Obsolete ( "Scheduled to be removed in 5.0. Setting Verbatim() at the container level does not cascade and must be set on each individual query." ) ]
20
+ public QueryContainerDescriptor < T > Verbatim ( bool verbatim = true )
21
+ {
22
+ throw new ArgumentException ( "Setting Verbatim() at the container level does not cascade and must be set on each individual query." ) ;
23
+ }
18
24
19
25
private static QueryContainer WrapInContainer < TQuery , TQueryInterface > (
20
26
Func < TQuery , TQueryInterface > create ,
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ protected override QueryContainer QueryFluent(QueryContainerDescriptor<Project>
149
149
#pragma warning restore 618
150
150
}
151
151
152
- /** Setting `IsVerbatim` on the outer query container does not cascase */
152
+ /** Setting `IsVerbatim` on the outer query container does not cascade */
153
153
public class QueryContainerVerbatimQueryUsageTests : QueryDslUsageTestsBase
154
154
{
155
155
protected override bool SupportsDeserialization => false ;
You can’t perform that action at this time.
0 commit comments