StructuralTypeConfiguration<TStructuralType>.Property Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Property(Expression<Func<TStructuralType,Nullable<TimeSpan>>>)
Adds an duration primitive property to the EDM type.
public Microsoft.AspNet.OData.Builder.PrecisionPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,TimeSpan?>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, Nullable<TimeSpan>>> -> Microsoft.AspNet.OData.Builder.PrecisionPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of TimeSpan)))) As PrecisionPropertyConfiguration
Parameters
- propertyExpression
- Expression<Func<TStructuralType,Nullable<TimeSpan>>>
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
.
Returns
A configuration object that can be used to further configure the property.
Applies to
Property(Expression<Func<TStructuralType,DateTimeOffset>>)
Adds an datetime-with-offset primitive property to the EDM type.
public Microsoft.AspNet.OData.Builder.PrecisionPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,DateTimeOffset>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, DateTimeOffset>> -> Microsoft.AspNet.OData.Builder.PrecisionPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, DateTimeOffset))) As PrecisionPropertyConfiguration
Parameters
- propertyExpression
- Expression<Func<TStructuralType,DateTimeOffset>>
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
.
Returns
A configuration object that can be used to further configure the property.
Applies to
Property(Expression<Func<TStructuralType,TimeSpan>>)
Adds an duration primitive property to the EDM type.
public Microsoft.AspNet.OData.Builder.PrecisionPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,TimeSpan>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, TimeSpan>> -> Microsoft.AspNet.OData.Builder.PrecisionPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, TimeSpan))) As PrecisionPropertyConfiguration
Parameters
- propertyExpression
- Expression<Func<TStructuralType,TimeSpan>>
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
.
Returns
A configuration object that can be used to further configure the property.
Applies to
Property(Expression<Func<TStructuralType,Nullable<Decimal>>>)
Adds an deciaml primitive property to the EDM type.
public Microsoft.AspNet.OData.Builder.DecimalPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,decimal?>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, Nullable<decimal>>> -> Microsoft.AspNet.OData.Builder.DecimalPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of Decimal)))) As DecimalPropertyConfiguration
Parameters
- propertyExpression
- Expression<Func<TStructuralType,Nullable<Decimal>>>
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
.
Returns
A configuration object that can be used to further configure the property.
Applies to
Property(Expression<Func<TStructuralType,String>>)
Adds a string property to the EDM type.
public Microsoft.AspNet.OData.Builder.LengthPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,string>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, string>> -> Microsoft.AspNet.OData.Builder.LengthPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, String))) As LengthPropertyConfiguration
Parameters
- propertyExpression
- 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
.
Returns
A configuration object that can be used to further configure the property.
Applies to
Property(Expression<Func<TStructuralType,Nullable<DateTimeOffset>>>)
Adds an datetime-with-offset primitive property to the EDM type.
public Microsoft.AspNet.OData.Builder.PrecisionPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,DateTimeOffset?>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, Nullable<DateTimeOffset>>> -> Microsoft.AspNet.OData.Builder.PrecisionPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of DateTimeOffset)))) As PrecisionPropertyConfiguration
Parameters
- propertyExpression
- Expression<Func<TStructuralType,Nullable<DateTimeOffset>>>
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
.
Returns
A configuration object that can be used to further configure the property.
Applies to
Property(Expression<Func<TStructuralType,TimeOfDay>>)
Adds an time-of-day primitive property to the EDM type.
public Microsoft.AspNet.OData.Builder.PrecisionPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,Microsoft.OData.Edm.TimeOfDay>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, Microsoft.OData.Edm.TimeOfDay>> -> Microsoft.AspNet.OData.Builder.PrecisionPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, TimeOfDay))) As PrecisionPropertyConfiguration
Parameters
- propertyExpression
- Expression<Func<TStructuralType,TimeOfDay>>
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
.
Returns
A configuration object that can be used to further configure the property.
Applies to
Property(Expression<Func<TStructuralType,Stream>>)
Adds a stream property the EDM type.
public Microsoft.AspNet.OData.Builder.PrimitivePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,System.IO.Stream>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, System.IO.Stream>> -> Microsoft.AspNet.OData.Builder.PrimitivePropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Stream))) As PrimitivePropertyConfiguration
Parameters
- propertyExpression
- 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
.
Returns
A configuration object that can be used to further configure the property.
Applies to
Property(Expression<Func<TStructuralType,Decimal>>)
Adds an deciaml primitive property to the EDM type.
public Microsoft.AspNet.OData.Builder.DecimalPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,decimal>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, decimal>> -> Microsoft.AspNet.OData.Builder.DecimalPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Decimal))) As DecimalPropertyConfiguration
Parameters
- propertyExpression
- Expression<Func<TStructuralType,Decimal>>
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
.
Returns
A configuration object that can be used to further configure the property.
Applies to
Property(Expression<Func<TStructuralType,Byte[]>>)
Adds a binary property to the EDM type.
public Microsoft.AspNet.OData.Builder.LengthPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,byte[]>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, byte[]>> -> Microsoft.AspNet.OData.Builder.LengthPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Byte()))) As LengthPropertyConfiguration
Parameters
- propertyExpression
- 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
.
Returns
A configuration object that can be used to further configure the property.
Applies to
Property(Expression<Func<TStructuralType,Nullable<TimeOfDay>>>)
Adds an time-of-day primitive property to the EDM type.
public Microsoft.AspNet.OData.Builder.PrecisionPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,Microsoft.OData.Edm.TimeOfDay?>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, Nullable<Microsoft.OData.Edm.TimeOfDay>>> -> Microsoft.AspNet.OData.Builder.PrecisionPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of TimeOfDay)))) As PrecisionPropertyConfiguration
Parameters
- propertyExpression
- Expression<Func<TStructuralType,Nullable<TimeOfDay>>>
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
.
Returns
A configuration object that can be used to further configure the property.
Applies to
Property<T>(Expression<Func<TStructuralType,T>>)
Adds a required primitive property to the EDM type.
public Microsoft.AspNet.OData.Builder.PrimitivePropertyConfiguration Property<T> (System.Linq.Expressions.Expression<Func<TStructuralType,T>> propertyExpression) where T : struct;
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, 'T>> -> Microsoft.AspNet.OData.Builder.PrimitivePropertyConfiguration (requires 'T : struct)
Public Function Property(Of T As Structure) (propertyExpression As Expression(Of Func(Of TStructuralType, T))) As PrimitivePropertyConfiguration
Type Parameters
- T
The primitive property type.
Parameters
- propertyExpression
- 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
.
Returns
A configuration object that can be used to further configure the property.
Applies to
Property<T>(Expression<Func<TStructuralType,Nullable<T>>>)
Adds an optional primitive property to the EDM type.
public Microsoft.AspNet.OData.Builder.PrimitivePropertyConfiguration Property<T> (System.Linq.Expressions.Expression<Func<TStructuralType,T?>> propertyExpression) where T : struct;
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, Nullable<'T>>> -> Microsoft.AspNet.OData.Builder.PrimitivePropertyConfiguration (requires 'T : struct)
Public Function Property(Of T As Structure) (propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of T)))) As PrimitivePropertyConfiguration
Type Parameters
- T
The primitive property type.
Parameters
- propertyExpression
- 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
.
Returns
A configuration object that can be used to further configure the property.