@@ -36,23 +36,23 @@ public class IndicesQuery : QueryBase, IIndicesQuery
3636 public Indices Indices { get ; set ; }
3737
3838 internal override void InternalWrapInContainer ( IQueryContainer c ) => c . Indices = this ;
39- internal static bool IsConditionless ( IIndicesQuery q ) =>
40- q . Indices == null || ( q . NoMatchQuery . IsConditionless ( ) && q . Query . IsConditionless ( ) ) ;
39+ internal static bool IsConditionless ( IIndicesQuery q ) =>
40+ q . Indices == null || q . NoMatchQuery . NotWritable ( ) && q . Query . NotWritable ( ) ;
4141 }
4242
43- public class IndicesQueryDescriptor < T >
44- : QueryDescriptorBase < IndicesQueryDescriptor < T > , IIndicesQuery >
43+ public class IndicesQueryDescriptor < T >
44+ : QueryDescriptorBase < IndicesQueryDescriptor < T > , IIndicesQuery >
4545 , IIndicesQuery where T : class
4646 {
4747 protected override bool Conditionless => IndicesQuery . IsConditionless ( this ) ;
4848 QueryContainer IIndicesQuery . Query { get ; set ; }
4949 QueryContainer IIndicesQuery . NoMatchQuery { get ; set ; }
5050 Indices IIndicesQuery . Indices { get ; set ; }
5151
52- public IndicesQueryDescriptor < T > Query ( Func < QueryContainerDescriptor < T > , QueryContainer > selector ) =>
52+ public IndicesQueryDescriptor < T > Query ( Func < QueryContainerDescriptor < T > , QueryContainer > selector ) =>
5353 Assign ( a => a . Query = selector ? . Invoke ( new QueryContainerDescriptor < T > ( ) ) ) ;
5454
55- public IndicesQueryDescriptor < T > Query < TOther > ( Func < QueryContainerDescriptor < TOther > , QueryContainer > selector ) where TOther : class =>
55+ public IndicesQueryDescriptor < T > Query < TOther > ( Func < QueryContainerDescriptor < TOther > , QueryContainer > selector ) where TOther : class =>
5656 Assign ( a => a . Query = selector ? . Invoke ( new QueryContainerDescriptor < TOther > ( ) ) ) ;
5757
5858 public IndicesQueryDescriptor < T > NoMatchQuery ( NoMatchShortcut shortcut ) =>
@@ -61,7 +61,7 @@ public IndicesQueryDescriptor<T> NoMatchQuery(NoMatchShortcut shortcut) =>
6161 public IndicesQueryDescriptor < T > NoMatchQuery ( Func < QueryContainerDescriptor < T > , QueryContainer > selector ) =>
6262 Assign ( a => a . NoMatchQuery = selector ? . Invoke ( new QueryContainerDescriptor < T > ( ) ) ) ;
6363
64- public IndicesQueryDescriptor < T > NoMatchQuery < TOther > ( Func < QueryContainerDescriptor < TOther > , QueryContainer > selector ) where TOther : class =>
64+ public IndicesQueryDescriptor < T > NoMatchQuery < TOther > ( Func < QueryContainerDescriptor < TOther > , QueryContainer > selector ) where TOther : class =>
6565 Assign ( a => a . NoMatchQuery = selector ? . Invoke ( new QueryContainerDescriptor < TOther > ( ) ) ) ;
6666
6767 public IndicesQueryDescriptor < T > Indices ( Indices indices ) => Assign ( a => a . Indices = indices ) ;
0 commit comments