Metodo StructuralTypeConfiguration<TStructuralType>.Property (Expression<Func<TStructuralType, Nullable<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à [T:System.TimeSpan?] 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, Nullable(Of TimeSpan))) _
) As DateTimePropertyConfiguration
'Utilizzo
Dim instance As StructuralTypeConfiguration
Dim propertyExpression As Expression(Of Func(Of TStructuralType, Nullable(Of TimeSpan)))
Dim returnValue As DateTimePropertyConfiguration
returnValue = instance.Property(propertyExpression)
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public DateTimePropertyConfiguration Property(
Expression<Func<TStructuralType, Nullable<TimeSpan>>> propertyExpression
)
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1011:ConsiderPassingBaseTypesAsParameters")]
public:
DateTimePropertyConfiguration^ Property(
Expression<Func<TStructuralType, Nullable<TimeSpan>>^>^ propertyExpression
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")>]
member Property :
propertyExpression:Expression<Func<'TStructuralType, Nullable<TimeSpan>>> -> DateTimePropertyConfiguration
public function Property(
propertyExpression : Expression<Func<TStructuralType, Nullable<TimeSpan>>>
) : DateTimePropertyConfiguration
Parametri
- propertyExpression
Tipo: System.Linq.Expressions.Expression<Func<TStructuralType, Nullable<TimeSpan>>>
Espressione lambda che rappresenta la proprietà da configurare. C#: t => t.MyProperty VB.Net: Function(t) t.MyProperty
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
Spazio dei nomi System.Data.Entity.ModelConfiguration.Configuration