SqlFunctions.CurrentUser 方法

定义

返回当前用户的名称。

[System.Data.Entity.DbFunction("SqlServer", "CURRENT_USER")]
public static string CurrentUser ();
static member CurrentUser : unit -> string
Public Shared Function CurrentUser () As String

返回

当前用户的名称。

属性

适用于