Share via


StructuralTypeConfiguration<TStructuralType>.Property Method

 

Namespace:   System.Web.OData.Builder
Assembly:  System.Web.OData (in System.Web.OData.dll)

Overload List

Name Description
System_CAPS_pubmethod Property(Expression<Func<TStructuralType, Byte[]>>)

Adds a binary property to the EDM type.

System_CAPS_pubmethod Property(Expression<Func<TStructuralType, Stream>>)

Adds a stream property the EDM type.

System_CAPS_pubmethod Property(Expression<Func<TStructuralType, String>>)

Adds a string property to the EDM type.

System_CAPS_pubmethod Property<T>(Expression<Func<TStructuralType, T>>)

Adds a required primitive property to the EDM type.

System_CAPS_pubmethod Property<T>(Expression<Func<TStructuralType, Nullable<T>>>)

Adds an optional primitive property to the EDM type.

See Also

StructuralTypeConfiguration<TStructuralType> Class
System.Web.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

Return Value

Type: System.Web.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

Return Value

Type: System.Web.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

Return Value

Type: System.Web.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

Return Value

Type: System.Web.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

Return Value

Type: System.Web.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