StructuralTypeConfiguration<TStructuralType>.Property Method (Expression<Func<TStructuralType, String>>)
Adds a string 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 Property ( _
propertyExpression As Expression(Of Func(Of TStructuralType, String)) _
) As PrimitivePropertyConfiguration
'Usage
Dim instance As StructuralTypeConfiguration
Dim propertyExpression As Expression(Of Func(Of TStructuralType, String))
Dim returnValue As PrimitivePropertyConfiguration
returnValue = instance.Property(propertyExpression)
public PrimitivePropertyConfiguration Property(
Expression<Func<TStructuralType, string>> propertyExpression
)
public:
PrimitivePropertyConfiguration^ Property(
Expression<Func<TStructuralType, String^>^>^ propertyExpression
)
member Property :
propertyExpression:Expression<Func<'TStructuralType, string>> -> PrimitivePropertyConfiguration
public function Property(
propertyExpression : Expression<Func<TStructuralType, String>>
) : PrimitivePropertyConfiguration
Parameters
- propertyExpression
Type: System.Linq.Expressions.Expression<Func<TStructuralType, String>>
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.PrimitivePropertyConfiguration
A configuration object that can be used to further configure the property.