Udostępnij przez


EntityMappingConfiguration<TEntityType>.Property Metoda

Definicja

Przeciążenia

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

Konfiguruje TimeSpan właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje System.string właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje System.TimeSpan? właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje System.decimal? właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje System.DateTimeOffset? właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje System.DateTime? właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje System.decimal właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje DateTimeOffset właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje DateTime właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje DbGeometry właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje DbGeography właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje System.byte[] właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje System.struct? właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje System.struct właściwość dołączona do tego fragmentu mapowania.

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

Konfiguruje TimeSpan właściwość dołączona do tego fragmentu mapowania.

[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

Parametry

propertyExpression
Expression<Func<TEntityType,TimeSpan>>

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje System.string właściwość dołączona do tego fragmentu mapowania.

[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

Parametry

propertyExpression
Expression<Func<TEntityType,String>>

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje System.TimeSpan? właściwość dołączona do tego fragmentu mapowania.

[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

Parametry

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

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje System.decimal? właściwość dołączona do tego fragmentu mapowania.

[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

Parametry

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

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje System.DateTimeOffset? właściwość dołączona do tego fragmentu mapowania.

[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

Parametry

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

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje System.DateTime? właściwość dołączona do tego fragmentu mapowania.

[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

Parametry

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

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje System.decimal właściwość dołączona do tego fragmentu mapowania.

[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

Parametry

propertyExpression
Expression<Func<TEntityType,Decimal>>

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje DateTimeOffset właściwość dołączona do tego fragmentu mapowania.

[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

Parametry

propertyExpression
Expression<Func<TEntityType,DateTimeOffset>>

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje DateTime właściwość dołączona do tego fragmentu mapowania.

[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

Parametry

propertyExpression
Expression<Func<TEntityType,DateTime>>

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje DbGeometry właściwość dołączona do tego fragmentu mapowania.

[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

Parametry

propertyExpression
Expression<Func<TEntityType,DbGeometry>>

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje DbGeography właściwość dołączona do tego fragmentu mapowania.

[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

Parametry

propertyExpression
Expression<Func<TEntityType,DbGeography>>

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje System.byte[] właściwość dołączona do tego fragmentu mapowania.

[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

Parametry

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

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje System.struct? właściwość dołączona do tego fragmentu mapowania.

[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

Parametry typu

T

Typ skonfigurowanej właściwości.

Parametry

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

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy

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

Konfiguruje System.struct właściwość dołączona do tego fragmentu mapowania.

[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

Parametry typu

T

Typ skonfigurowanej właściwości.

Parametry

propertyExpression
Expression<Func<TEntityType,T>>

Wyrażenie lambda reprezentujące właściwość do skonfigurowania. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty

Zwraca

Obiekt konfiguracji, który może służyć do konfigurowania właściwości.

Atrybuty

Dotyczy