Condividi tramite


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

[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à DateTime definita in questo tipo.

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

Sintassi

'Dichiarazione
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")> _
Public Function Property ( _
    propertyExpression As Expression(Of Func(Of TStructuralType, DateTime)) _
) As DateTimePropertyConfiguration
'Utilizzo
Dim instance As StructuralTypeConfiguration 
Dim propertyExpression As Expression(Of Func(Of TStructuralType, DateTime))
Dim returnValue As DateTimePropertyConfiguration 

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

Parametri

Valore restituito

Tipo: System.Data.Entity.ModelConfiguration.Configuration.DateTimePropertyConfiguration
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