@@ -14,11 +14,11 @@ namespace Microsoft.EntityFrameworkCore.Query;
1414/// </para>
1515/// </summary>
1616/// <param name="queryExpression">Represents the server-side query expression for the collection.</param>
17- /// <param name="relationship">A navigation associated with this collection, if any.</param>
18- /// <param name="elementType">The clr type of individual elements in the collection.</param>
17+ /// <param name="structuralProperty">The navigation or complex property associated with the collection, if any.</param>
18+ /// <param name="elementType">The .NET type of individual elements in the collection.</param>
1919public class CollectionResultExpression (
2020 Expression queryExpression ,
21- IPropertyBase ? relationship ,
21+ IPropertyBase ? structuralProperty ,
2222 Type elementType )
2323 : Expression , IPrintableExpression
2424{
@@ -28,12 +28,12 @@ public class CollectionResultExpression(
2828 public virtual Expression QueryExpression { get ; } = queryExpression ;
2929
3030 /// <summary>
31- /// The relationship associated with the collection, if any.
31+ /// The navigation or complex property associated with the collection, if any.
3232 /// </summary>
33- public virtual IPropertyBase ? Relationship { get ; } = relationship ;
33+ public virtual IPropertyBase ? StructuralProperty { get ; } = structuralProperty ;
3434
3535 /// <summary>
36- /// The clr type of elements of the collection.
36+ /// The .NET type of elements of the collection.
3737 /// </summary>
3838 public virtual Type ElementType { get ; } = elementType ;
3939
@@ -58,7 +58,7 @@ protected override Expression VisitChildren(ExpressionVisitor visitor)
5858 public virtual CollectionResultExpression Update ( Expression queryExpression )
5959 => queryExpression == QueryExpression
6060 ? this
61- : new CollectionResultExpression ( queryExpression , Relationship , ElementType ) ;
61+ : new CollectionResultExpression ( queryExpression , StructuralProperty , ElementType ) ;
6262
6363 /// <inheritdoc />
6464 public virtual void Print ( ExpressionPrinter expressionPrinter )
@@ -70,9 +70,9 @@ public virtual void Print(ExpressionPrinter expressionPrinter)
7070 expressionPrinter . Visit ( QueryExpression ) ;
7171 expressionPrinter . AppendLine ( ) ;
7272
73- if ( Relationship is not null )
73+ if ( StructuralProperty is not null )
7474 {
75- expressionPrinter . Append ( "Relationship :" ) . AppendLine ( Relationship . ToString ( ) ! ) ;
75+ expressionPrinter . Append ( "Structural Property :" ) . AppendLine ( StructuralProperty . ToString ( ) ! ) ;
7676 }
7777
7878 expressionPrinter . Append ( "ElementType:" ) . AppendLine ( ElementType . ShortDisplayName ( ) ) ;
@@ -88,6 +88,6 @@ public virtual void Print(ExpressionPrinter expressionPrinter)
8888 /// <summary>
8989 /// The navigation if associated with the collection.
9090 /// </summary>
91- [ Obsolete ( "Use Relationship instead." , error : true ) ]
91+ [ Obsolete ( "Use StructuralProperty instead." , error : true ) ]
9292 public virtual INavigationBase ? Navigation { get ; }
9393}
0 commit comments