Condividi tramite


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

[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à TimeSpan 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, TimeSpan)) _
) As DateTimePropertyConfiguration
'Utilizzo
Dim instance As StructuralTypeConfiguration 
Dim propertyExpression As Expression(Of Func(Of TStructuralType, TimeSpan))
Dim returnValue As DateTimePropertyConfiguration 

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