Condividi tramite


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

[Questa pagina è specifica della versione 6 di Entity Framework. La versione più recente è disponibile come pacchetto NuGet per "Entity Framework". Per ulteriori informazioni su Entity Framework, vedere la pagina msdn.com/data/ef.]

Configura una proprietà [T:System.decimal?] definita in questo tipo.

Spazio dei nomi:  System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

Sintassi

'Dichiarazione
<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
'Utilizzo
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

Parametri

Valore restituito

Tipo: System.Data.Entity.ModelConfiguration.Configuration.DecimalPropertyConfiguration
Oggetto di configurazione che può essere utilizzato per configurare la proprietà.

Vedere anche

Riferimento

StructuralTypeConfiguration<TStructuralType> Classe

Overload Property

Spazio dei nomi System.Data.Entity.ModelConfiguration.Configuration