EntityMappingConfiguration<TEntityType>.Property Method

Definition

Overloads

Property(Expression<Func<TEntityType,TimeSpan>>)

Configures a TimeSpan property that is included in this mapping fragment.

Property(Expression<Func<TEntityType,String>>)

Configures a System.string property that is included in this mapping fragment.

Property(Expression<Func<TEntityType,Nullable<TimeSpan>>>)

Configures a System.TimeSpan? property that is included in this mapping fragment.

Property(Expression<Func<TEntityType,Nullable<Decimal>>>)

Configures a System.decimal? property that is included in this mapping fragment.

Property(Expression<Func<TEntityType,Nullable<DateTimeOffset>>>)

Configures a System.DateTimeOffset? property that is included in this mapping fragment.

Property(Expression<Func<TEntityType,Nullable<DateTime>>>)

Configures a System.DateTime? property that is included in this mapping fragment.

Property(Expression<Func<TEntityType,Decimal>>)

Configures a System.decimal property that is included in this mapping fragment.

Property(Expression<Func<TEntityType,DateTimeOffset>>)

Configures a DateTimeOffset property that is included in this mapping fragment.

Property(Expression<Func<TEntityType,DateTime>>)

Configures a DateTime property that is included in this mapping fragment.

Property(Expression<Func<TEntityType,DbGeometry>>)

Configures a DbGeometry property that is included in this mapping fragment.

Property(Expression<Func<TEntityType,DbGeography>>)

Configures a DbGeography property that is included in this mapping fragment.

Property(Expression<Func<TEntityType,Byte[]>>)

Configures a System.byte[] property that is included in this mapping fragment.

Property<T>(Expression<Func<TEntityType,Nullable<T>>>)

Configures a System.struct? property that is included in this mapping fragment.

Property<T>(Expression<Func<TEntityType,T>>)

Configures a System.struct property that is included in this mapping fragment.

Property(Expression<Func<TEntityType,TimeSpan>>)

Configures a TimeSpan property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property (System.Linq.Expressions.Expression<Func<TEntityType,TimeSpan>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, TimeSpan>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TEntityType, TimeSpan))) As PropertyMappingConfiguration

Parameters

propertyExpression
Expression<Func<TEntityType,TimeSpan>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property(Expression<Func<TEntityType,String>>)

Configures a System.string property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property (System.Linq.Expressions.Expression<Func<TEntityType,string>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, string>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TEntityType, String))) As PropertyMappingConfiguration

Parameters

propertyExpression
Expression<Func<TEntityType,String>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property(Expression<Func<TEntityType,Nullable<TimeSpan>>>)

Configures a System.TimeSpan? property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property (System.Linq.Expressions.Expression<Func<TEntityType,Nullable<TimeSpan>>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, Nullable<TimeSpan>>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TEntityType, Nullable(Of TimeSpan)))) As PropertyMappingConfiguration

Parameters

propertyExpression
Expression<Func<TEntityType,Nullable<TimeSpan>>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property(Expression<Func<TEntityType,Nullable<Decimal>>>)

Configures a System.decimal? property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property (System.Linq.Expressions.Expression<Func<TEntityType,Nullable<decimal>>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, Nullable<decimal>>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TEntityType, Nullable(Of Decimal)))) As PropertyMappingConfiguration

Parameters

propertyExpression
Expression<Func<TEntityType,Nullable<Decimal>>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property(Expression<Func<TEntityType,Nullable<DateTimeOffset>>>)

Configures a System.DateTimeOffset? property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property (System.Linq.Expressions.Expression<Func<TEntityType,Nullable<DateTimeOffset>>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, Nullable<DateTimeOffset>>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TEntityType, Nullable(Of DateTimeOffset)))) As PropertyMappingConfiguration

Parameters

propertyExpression
Expression<Func<TEntityType,Nullable<DateTimeOffset>>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property(Expression<Func<TEntityType,Nullable<DateTime>>>)

Configures a System.DateTime? property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property (System.Linq.Expressions.Expression<Func<TEntityType,Nullable<DateTime>>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, Nullable<DateTime>>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TEntityType, Nullable(Of DateTime)))) As PropertyMappingConfiguration

Parameters

propertyExpression
Expression<Func<TEntityType,Nullable<DateTime>>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property(Expression<Func<TEntityType,Decimal>>)

Configures a System.decimal property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property (System.Linq.Expressions.Expression<Func<TEntityType,decimal>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, decimal>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TEntityType, Decimal))) As PropertyMappingConfiguration

Parameters

propertyExpression
Expression<Func<TEntityType,Decimal>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property(Expression<Func<TEntityType,DateTimeOffset>>)

Configures a DateTimeOffset property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property (System.Linq.Expressions.Expression<Func<TEntityType,DateTimeOffset>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, DateTimeOffset>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TEntityType, DateTimeOffset))) As PropertyMappingConfiguration

Parameters

propertyExpression
Expression<Func<TEntityType,DateTimeOffset>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property(Expression<Func<TEntityType,DateTime>>)

Configures a DateTime property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property (System.Linq.Expressions.Expression<Func<TEntityType,DateTime>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, DateTime>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TEntityType, DateTime))) As PropertyMappingConfiguration

Parameters

propertyExpression
Expression<Func<TEntityType,DateTime>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property(Expression<Func<TEntityType,DbGeometry>>)

Configures a DbGeometry property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property (System.Linq.Expressions.Expression<Func<TEntityType,System.Data.Entity.Spatial.DbGeometry>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, System.Data.Entity.Spatial.DbGeometry>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TEntityType, DbGeometry))) As PropertyMappingConfiguration

Parameters

propertyExpression
Expression<Func<TEntityType,DbGeometry>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property(Expression<Func<TEntityType,DbGeography>>)

Configures a DbGeography property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property (System.Linq.Expressions.Expression<Func<TEntityType,System.Data.Entity.Spatial.DbGeography>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, System.Data.Entity.Spatial.DbGeography>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TEntityType, DbGeography))) As PropertyMappingConfiguration

Parameters

propertyExpression
Expression<Func<TEntityType,DbGeography>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property(Expression<Func<TEntityType,Byte[]>>)

Configures a System.byte[] property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property (System.Linq.Expressions.Expression<Func<TEntityType,byte[]>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, byte[]>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TEntityType, Byte()))) As PropertyMappingConfiguration

Parameters

propertyExpression
Expression<Func<TEntityType,Byte[]>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property<T>(Expression<Func<TEntityType,Nullable<T>>>)

Configures a System.struct? property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property<T> (System.Linq.Expressions.Expression<Func<TEntityType,Nullable<T>>> propertyExpression) where T : struct;
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, Nullable<'T>>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration (requires 'T : struct)
Public Function Property(Of T As Structure) (propertyExpression As Expression(Of Func(Of TEntityType, Nullable(Of T)))) As PropertyMappingConfiguration

Type Parameters

T

The type of the property being configured.

Parameters

propertyExpression
Expression<Func<TEntityType,Nullable<T>>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to

Property<T>(Expression<Func<TEntityType,T>>)

Configures a System.struct property that is included in this mapping fragment.

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration Property<T> (System.Linq.Expressions.Expression<Func<TEntityType,T>> propertyExpression) where T : struct;
member this.Property : System.Linq.Expressions.Expression<Func<'EntityType, 'T>> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyMappingConfiguration (requires 'T : struct)
Public Function Property(Of T As Structure) (propertyExpression As Expression(Of Func(Of TEntityType, T))) As PropertyMappingConfiguration

Type Parameters

T

The type of the property being configured.

Parameters

propertyExpression
Expression<Func<TEntityType,T>>

A lambda expression representing the property to be configured. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Returns

A configuration object that can be used to configure the property.

Attributes

Applies to