共用方式為


StructuralTypeConfiguration<TStructuralType>.Property 方法 (Expression<Func<TStructuralType, Nullable<Decimal>>>)

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

設定在此類型上定義的 [T:System.decimal?] 屬性。

命名空間:  System.Data.Entity.ModelConfiguration.Configuration
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
Public Function Property ( _
    propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of Decimal))) _
) As DecimalPropertyConfiguration
'用途
Dim instance As StructuralTypeConfiguration 
Dim propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of Decimal)))
Dim returnValue As DecimalPropertyConfiguration 

returnValue = instance.Property(propertyExpression)
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public DecimalPropertyConfiguration Property(
    Expression<Func<TStructuralType, Nullable<decimal>>> propertyExpression
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1011:ConsiderPassingBaseTypesAsParameters")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
public:
DecimalPropertyConfiguration^ Property(
    Expression<Func<TStructuralType, Nullable<Decimal>>^>^ propertyExpression
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
member Property : 
        propertyExpression:Expression<Func<'TStructuralType, Nullable<decimal>>> -> DecimalPropertyConfiguration
public function Property(
    propertyExpression : Expression<Func<TStructuralType, Nullable<decimal>>>
) : DecimalPropertyConfiguration

參數

傳回值

類型:System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration
可用來設定此屬性的組態物件。

請參閱

參考

StructuralTypeConfiguration<TStructuralType> 類別

Property 多載

System.Data.Entity.ModelConfiguration.Configuration 命名空間