SqlFunctions.CurrentUser Method ()

 

Returns the name of the current user.

Namespace:   System.Data.Entity.SqlServer
Assembly:  EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)

[DbFunctionAttribute("SqlServer", "CURRENT_USER")]
public static string CurrentUser()

Return Value

Type: System.String

The name of the current user.