StructuralTypeConfiguration<TStructuralType>.ComplexProperty<TComplexType> Method
Adds a complex property to the EDM type.
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Syntax
'Declaration
Public Function ComplexProperty(Of TComplexType) ( _
propertyExpression As Expression(Of Func(Of TStructuralType, TComplexType)) _
) As ComplexPropertyConfiguration
'Usage
Dim instance As StructuralTypeConfiguration
Dim propertyExpression As Expression(Of Func(Of TStructuralType, TComplexType))
Dim returnValue As ComplexPropertyConfiguration
returnValue = instance.ComplexProperty(propertyExpression)
public ComplexPropertyConfiguration ComplexProperty<TComplexType>(
Expression<Func<TStructuralType, TComplexType>> propertyExpression
)
public:
generic<typename TComplexType>
ComplexPropertyConfiguration^ ComplexProperty(
Expression<Func<TStructuralType, TComplexType>^>^ propertyExpression
)
member ComplexProperty :
propertyExpression:Expression<Func<'TStructuralType, 'TComplexType>> -> ComplexPropertyConfiguration
JScript does not support generic types and methods.
Type Parameters
- TComplexType
The complex type.
Parameters
- propertyExpression
Type: System.Linq.Expressions.Expression<Func<TStructuralType, TComplexType>>
A lambda expression representing the navigation property for the relationship. For example, in C# t => t.MyProperty and in Visual Basic .NET Function(t) t.MyProperty .
Return Value
Type: System.Web.Http.OData.Builder.ComplexPropertyConfiguration
A configuration object that can be used to further configure the property.