Freigeben über


DbExpression.FromDateTime-Methode

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Erstellt ein DbExpression-Objekt, das den angegebenen DateTime-Wert (der Nullwerte zulässt) darstellt.

Namespace:  System.Data.Entity.Core.Common.CommandTrees
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Shared Function FromDateTime ( _
    value As Nullable(Of DateTime) _
) As DbExpression
'Usage
Dim value As Nullable(Of DateTime)
Dim returnValue As DbExpression 

returnValue = DbExpression.FromDateTime(value)
public static DbExpression FromDateTime(
    Nullable<DateTime> value
)
public:
static DbExpression^ FromDateTime(
    Nullable<DateTime> value
)
static member FromDateTime : 
        value:Nullable<DateTime> -> DbExpression
public static function FromDateTime(
    value : Nullable<DateTime>
) : DbExpression

Parameter

Rückgabewert

Typ: System.Data.Entity.Core.Common.CommandTrees.DbExpression
Ein DbExpression-Objekt, das den angegebenen DateTime-Wert darstellt.

Siehe auch

Verweis

DbExpression Klasse

System.Data.Entity.Core.Common.CommandTrees-Namespace