File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -272,6 +272,18 @@ public void NestedComponentPropertyCastTest()
272
272
o => o ? . Name == "component[OtherProperty1]" ) ;
273
273
}
274
274
275
+ [ Test ]
276
+ public void CompositePropertyTest ( )
277
+ {
278
+ var query = session . Query < Glarch > ( ) . Select ( o => o . Multiple . count ) ;
279
+ AssertSupported (
280
+ query ,
281
+ typeof ( Glarch ) . FullName ,
282
+ "Multiple.count" ,
283
+ o => o is Int32Type ,
284
+ o => o ? . Name == typeof ( MultiplicityType ) . FullName ) ;
285
+ }
286
+
275
287
[ Test ]
276
288
public void ManyToOneTest ( )
277
289
{
Original file line number Diff line number Diff line change @@ -158,7 +158,11 @@ internal static bool TryGetMappedNullability(
158
158
}
159
159
160
160
int index ;
161
- if ( componentType != null )
161
+ if ( componentType is CompositeCustomType cct )
162
+ {
163
+ memberPath = memberPath . Remove ( memberPath . LastIndexOf ( '.' ) ) ;
164
+ }
165
+ else if ( componentType != null )
162
166
{
163
167
index = Array . IndexOf (
164
168
componentType . PropertyNames ,
You can’t perform that action at this time.
0 commit comments