EntityMappingConfiguration<TEntityType>.Property 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Property(Expression<Func<TEntityType,TimeSpan>>)
TimeSpan配置此映射片段中包含的属性。
[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
参数
- propertyExpression
- Expression<Func<TEntityType,TimeSpan>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property(Expression<Func<TEntityType,String>>)
System.string配置此映射片段中包含的属性。
[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
参数
- propertyExpression
- Expression<Func<TEntityType,String>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property(Expression<Func<TEntityType,Nullable<TimeSpan>>>)
System.TimeSpan?配置此映射片段中包含的属性。
[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
参数
- propertyExpression
- Expression<Func<TEntityType,Nullable<TimeSpan>>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property(Expression<Func<TEntityType,Nullable<Decimal>>>)
System.decimal?配置此映射片段中包含的属性。
[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
参数
- propertyExpression
- Expression<Func<TEntityType,Nullable<Decimal>>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property(Expression<Func<TEntityType,Nullable<DateTimeOffset>>>)
System.DateTimeOffset?配置此映射片段中包含的属性。
[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
参数
- propertyExpression
- Expression<Func<TEntityType,Nullable<DateTimeOffset>>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property(Expression<Func<TEntityType,Nullable<DateTime>>>)
System.DateTime?配置此映射片段中包含的属性。
[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
参数
- propertyExpression
- Expression<Func<TEntityType,Nullable<DateTime>>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property(Expression<Func<TEntityType,Decimal>>)
System.decimal配置此映射片段中包含的属性。
[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
参数
- propertyExpression
- Expression<Func<TEntityType,Decimal>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property(Expression<Func<TEntityType,DateTimeOffset>>)
DateTimeOffset配置此映射片段中包含的属性。
[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
参数
- propertyExpression
- Expression<Func<TEntityType,DateTimeOffset>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property(Expression<Func<TEntityType,DateTime>>)
DateTime配置此映射片段中包含的属性。
[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
参数
- propertyExpression
- Expression<Func<TEntityType,DateTime>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property(Expression<Func<TEntityType,DbGeometry>>)
DbGeometry配置此映射片段中包含的属性。
[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
参数
- propertyExpression
- Expression<Func<TEntityType,DbGeometry>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property(Expression<Func<TEntityType,DbGeography>>)
DbGeography配置此映射片段中包含的属性。
[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
参数
- propertyExpression
- Expression<Func<TEntityType,DbGeography>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property(Expression<Func<TEntityType,Byte[]>>)
System.byte[]配置此映射片段中包含的属性。
[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
参数
- propertyExpression
- Expression<Func<TEntityType,Byte[]>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property<T>(Expression<Func<TEntityType,Nullable<T>>>)
System.struct?配置此映射片段中包含的属性。
[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
类型参数
- T
要配置的属性的类型。
参数
- propertyExpression
- Expression<Func<TEntityType,Nullable<T>>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性
适用于
Property<T>(Expression<Func<TEntityType,T>>)
System.struct配置此映射片段中包含的属性。
[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
类型参数
- T
要配置的属性的类型。
参数
- propertyExpression
- Expression<Func<TEntityType,T>>
表示要配置的属性的 lambda 表达式。 C#: t => t.MyProperty VB.Net: Function (t) t.MyProperty
返回
可用于配置属性的配置对象。
- 属性