StructuralTypeConfiguration<TStructuralType>.Property 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
Property(Expression<Func<TStructuralType,TimeSpan>>)
設定 TimeSpan 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,TimeSpan>> propertyExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,TimeSpan>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, TimeSpan>> -> System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, TimeSpan))) As DateTimePropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,TimeSpan>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,String>>)
設定 System.string 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.StringPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,string>> propertyExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.StringPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,string>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, string>> -> System.Data.Entity.ModelConfiguration.Configuration.StringPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, String))) As StringPropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,String>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,Nullable<TimeSpan>>>)
設定 System.TimeSpan? 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,Nullable<TimeSpan>>> propertyExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,Nullable<TimeSpan>>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, Nullable<TimeSpan>>> -> System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of TimeSpan)))) As DateTimePropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,Nullable<TimeSpan>>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,Nullable<Decimal>>>)
設定 System.decimal? 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,Nullable<decimal>>> propertyExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,Nullable<decimal>>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, Nullable<decimal>>> -> System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of Decimal)))) As DecimalPropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,Nullable<Decimal>>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,Nullable<DateTimeOffset>>>)
設定 System.DateTimeOffset? 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,Nullable<DateTimeOffset>>> propertyExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,Nullable<DateTimeOffset>>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, Nullable<DateTimeOffset>>> -> System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of DateTimeOffset)))) As DateTimePropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,Nullable<DateTimeOffset>>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,Nullable<DateTime>>>)
設定 System.DateTime? 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,Nullable<DateTime>>> propertyExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,Nullable<DateTime>>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, Nullable<DateTime>>> -> System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of DateTime)))) As DateTimePropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,Nullable<DateTime>>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,Decimal>>)
設定 System.decimal 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,decimal>> propertyExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,decimal>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, decimal>> -> System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Decimal))) As DecimalPropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,Decimal>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,DateTime>>)
設定 DateTime 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,DateTime>> propertyExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,DateTime>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, DateTime>> -> System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, DateTime))) As DateTimePropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,DateTime>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,DbGeometry>>)
設定 DbGeometry 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,System.Data.Spatial.DbGeometry>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, System.Data.Spatial.DbGeometry>> -> System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, DbGeometry))) As PrimitivePropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,DbGeometry>>
Lambda 運算式,表示要設定的屬性。
C#: t = > t.MyProperty
VB.Net:函式 (t.MyProperty) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,DbGeography>>)
設定 DbGeography 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,System.Data.Spatial.DbGeography>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, System.Data.Spatial.DbGeography>> -> System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, DbGeography))) As PrimitivePropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,DbGeography>>
Lambda 運算式,表示要設定的屬性。
C#: t = > t.MyProperty
VB.Net:函式 (t.MyProperty) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,DbGeometry>>)
設定 DbGeometry 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,System.Data.Entity.Spatial.DbGeometry>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, System.Data.Entity.Spatial.DbGeometry>> -> System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, DbGeometry))) As PrimitivePropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,DbGeometry>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,DbGeography>>)
設定 DbGeography 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,System.Data.Entity.Spatial.DbGeography>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, System.Data.Entity.Spatial.DbGeography>> -> System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, DbGeography))) As PrimitivePropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,DbGeography>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,Byte[]>>)
設定 System.byte[] 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.BinaryPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,byte[]>> propertyExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.BinaryPropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,byte[]>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, byte[]>> -> System.Data.Entity.ModelConfiguration.Configuration.BinaryPropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, Byte()))) As BinaryPropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,Byte[]>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property(Expression<Func<TStructuralType,DateTimeOffset>>)
設定 DateTimeOffset 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,DateTimeOffset>> propertyExpression);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration Property (System.Linq.Expressions.Expression<Func<TStructuralType,DateTimeOffset>> propertyExpression);
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, DateTimeOffset>> -> System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
Public Function Property (propertyExpression As Expression(Of Func(Of TStructuralType, DateTimeOffset))) As DateTimePropertyConfiguration
參數
- propertyExpression
- Expression<Func<TStructuralType,DateTimeOffset>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property<T>(Expression<Func<TStructuralType,T>>)
設定 System.struct 在這個類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration Property<T> (System.Linq.Expressions.Expression<Func<TStructuralType,T>> propertyExpression) where T : struct;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration Property<T> (System.Linq.Expressions.Expression<Func<TStructuralType,T>> propertyExpression) where T : struct;
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, 'T>> -> System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration (requires 'T : struct)
Public Function Property(Of T As Structure) (propertyExpression As Expression(Of Func(Of TStructuralType, T))) As PrimitivePropertyConfiguration
類型參數
- T
正在設定之屬性的型別。
參數
- propertyExpression
- Expression<Func<TStructuralType,T>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性
適用於
Property<T>(Expression<Func<TStructuralType,Nullable<T>>>)
設定 System.struct? 在此類型上定義的屬性。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration Property<T> (System.Linq.Expressions.Expression<Func<TStructuralType,Nullable<T>>> propertyExpression) where T : struct;
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration Property<T> (System.Linq.Expressions.Expression<Func<TStructuralType,Nullable<T>>> propertyExpression) where T : struct;
member this.Property : System.Linq.Expressions.Expression<Func<'StructuralType, Nullable<'T>>> -> System.Data.Entity.ModelConfiguration.Configuration.PrimitivePropertyConfiguration (requires 'T : struct)
Public Function Property(Of T As Structure) (propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of T)))) As PrimitivePropertyConfiguration
類型參數
- T
正在設定之屬性的型別。
參數
- propertyExpression
- Expression<Func<TStructuralType,Nullable<T>>>
Lambda 運算式,表示要設定的屬性。 C#: t = > t.MyProperty VB.Net:函式 (t) t.MyProperty
傳回
可用來設定此屬性的組態物件。
- 屬性