Share via


StructuralTypeConfiguration<TStructuralType>.HasInstanceAnnotations Method

Definition

Adds an InstanceAnnotation container property.

public void HasInstanceAnnotations (System.Linq.Expressions.Expression<Func<TStructuralType,Microsoft.AspNet.OData.Builder.IODataInstanceAnnotationContainer>> propertyExpression);
member this.HasInstanceAnnotations : System.Linq.Expressions.Expression<Func<'StructuralType, Microsoft.AspNet.OData.Builder.IODataInstanceAnnotationContainer>> -> unit
Public Sub HasInstanceAnnotations (propertyExpression As Expression(Of Func(Of TStructuralType, IODataInstanceAnnotationContainer)))

Parameters

propertyExpression
Expression<Func<TStructuralType,IODataInstanceAnnotationContainer>>

A lambda expression representing the instance annotation container property for the relationship. For example, in C# t => t.MyProperty and in Visual Basic .NET Function(t) t.MyProperty.

Applies to