Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

EdmFunctions.CurrentDateTime Method

.NET Framework 4.6 and 4.5

Creates a DbFunctionExpression that invokes the canonical 'CurrentDateTime' function.

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

public static DbFunctionExpression CurrentDateTime()

Return Value

Type: System.Data.Common.CommandTrees.DbFunctionExpression
A new DbFunctionExpression that returns the current date and time as an Edm.DateTime instance.

.NET Framework

Supported in: 4.6, 4.5
Show:
© 2015 Microsoft