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:函式 (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:函式 (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:函式 (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:函式 (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:函式 (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:函式 (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:函式 (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:函式 (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:函式 (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:函式 (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:函式 (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:函式 (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:函式 (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:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性