StructuralTypeConfiguration<TStructuralType>.ComplexProperty<TComplexType> Method (Expression<Func<TStructuralType, TComplexType>>)
Adds a complex property to the EDM type.
Namespace: System.Web.OData.Builder
Assembly: System.Web.OData (in System.Web.OData.dll)
Syntax
public ComplexPropertyConfiguration ComplexProperty<TComplexType>(
Expression<Func<TStructuralType, TComplexType>> propertyExpression
)
public:
generic<typename TComplexType>
ComplexPropertyConfiguration^ ComplexProperty(
Expression<Func<TStructuralType, TComplexType>^>^ propertyExpression
)
member ComplexProperty<'TComplexType> :
propertyExpression:Expression<Func<'TStructuralType, 'TComplexType>> -> ComplexPropertyConfiguration
Public Function ComplexProperty(Of TComplexType) (
propertyExpression As Expression(Of Func(Of TStructuralType, TComplexType))
) As ComplexPropertyConfiguration
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.OData.Builder.ComplexPropertyConfiguration
A configuration object that can be used to further configure the property.
Type Parameters
- TComplexType
The complex type.
See Also
StructuralTypeConfiguration<TStructuralType> Class
System.Web.OData.Builder Namespace
Return to top