StructuralTypeConfiguration<TStructuralType>.Property Method
Namespace: System.Web.Http.OData.Builder
Assembly: System.Web.Http.OData (in System.Web.Http.OData.dll)
Overload List
Name | Description | |
---|---|---|
Property(Expression<Func<TStructuralType, Byte[]>>) | Adds a binary property to the EDM type. |
|
Property(Expression<Func<TStructuralType, Stream>>) | Adds a stream property the EDM type. |
|
Property(Expression<Func<TStructuralType, String>>) | Adds a string property to the EDM type. |
|
Property<T>(Expression<Func<TStructuralType, T>>) | Adds a required primitive property to the EDM type. |
|
Property<T>(Expression<Func<TStructuralType, Nullable<T>>>) | Adds an optional primitive property to the EDM type. |
See Also
StructuralTypeConfiguration<TStructuralType> Class
System.Web.Http.OData.Builder Namespace
Return to top
StructuralTypeConfiguration<TStructuralType>.Property Method (Expression<Func<TStructuralType, Byte[]>>)
Adds a binary property to the EDM type.
Syntax
public PrimitivePropertyConfiguration Property(
Expression<Func<TStructuralType, byte[]>> propertyExpression
)
public:
PrimitivePropertyConfiguration^ Property(
Expression<Func<TStructuralType, array<unsigned char>^>^>^ propertyExpression
)
member Property :
propertyExpression:Expression<Func<'TStructuralType, byte[]>> -> PrimitivePropertyConfiguration
Public Function Property (
propertyExpression As Expression(Of Func(Of TStructuralType, Byte()))
) As PrimitivePropertyConfiguration
Parameters
propertyExpression
Type: System.Linq.Expressions.Expression<Func<TStructuralType, Byte[]>>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.
Return to top
StructuralTypeConfiguration<TStructuralType>.Property Method (Expression<Func<TStructuralType, Stream>>)
Adds a stream property the EDM type.
Syntax
public PrimitivePropertyConfiguration Property(
Expression<Func<TStructuralType, Stream>> propertyExpression
)
public:
PrimitivePropertyConfiguration^ Property(
Expression<Func<TStructuralType, Stream^>^>^ propertyExpression
)
member Property :
propertyExpression:Expression<Func<'TStructuralType, Stream>> -> PrimitivePropertyConfiguration
Public Function Property (
propertyExpression As Expression(Of Func(Of TStructuralType, Stream))
) As PrimitivePropertyConfiguration
Parameters
propertyExpression
Type: System.Linq.Expressions.Expression<Func<TStructuralType, Stream>>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.
Return to top
StructuralTypeConfiguration<TStructuralType>.Property Method (Expression<Func<TStructuralType, String>>)
Adds a string property to the EDM type.
Syntax
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 As Expression(Of Func(Of TStructuralType, String))
) As 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.
Return to top
StructuralTypeConfiguration<TStructuralType>.Property<T> Method (Expression<Func<TStructuralType, T>>)
Adds a required primitive property to the EDM type.
Syntax
public PrimitivePropertyConfiguration Property<T>(
Expression<Func<TStructuralType, T>> propertyExpression
)
where T : struct
public:
generic<typename T>
where T : value struct, gcnew()
PrimitivePropertyConfiguration^ Property(
Expression<Func<TStructuralType, T>^>^ propertyExpression
)
member Property<'T when 'T : struct> :
propertyExpression:Expression<Func<'TStructuralType, 'T>> -> PrimitivePropertyConfiguration
Public Function Property(Of T As Structure) (
propertyExpression As Expression(Of Func(Of TStructuralType, T))
) As PrimitivePropertyConfiguration
Parameters
propertyExpression
Type: System.Linq.Expressions.Expression<Func<TStructuralType, T>>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.
Type Parameters
- T
The primitive property type.
Return to top
StructuralTypeConfiguration<TStructuralType>.Property<T> Method (Expression<Func<TStructuralType, Nullable<T>>>)
Adds an optional primitive property to the EDM type.
Syntax
public PrimitivePropertyConfiguration Property<T>(
Expression<Func<TStructuralType, Nullable<T>>> propertyExpression
)
where T : struct
public:
generic<typename T>
where T : value struct, gcnew()
PrimitivePropertyConfiguration^ Property(
Expression<Func<TStructuralType, Nullable<T>>^>^ propertyExpression
)
member Property<'T when 'T : struct> :
propertyExpression:Expression<Func<'TStructuralType, Nullable<'T>>> -> PrimitivePropertyConfiguration
Public Function Property(Of T As Structure) (
propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of T)))
) As PrimitivePropertyConfiguration
Parameters
propertyExpression
Type: System.Linq.Expressions.Expression<Func<TStructuralType, Nullable<T>>>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.
Type Parameters
- T
The primitive property type.
Return to top