Edit

Share via


SqlFunctions.UserName Method

Definition

Returns a database user name corresponding to a specified identification number.

Overloads

UserName()

Returns a database user name corresponding to a specified identification number.

UserName(Nullable<Int32>)

Returns a database user name corresponding to a specified identification number.

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see USER_NAME (Transact-SQL).

UserName()

Returns a database user name corresponding to a specified identification number.

public:
 static System::String ^ UserName();
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "USER_NAME")]
public static string UserName ();
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "USER_NAME")>]
static member UserName : unit -> string
Public Shared Function UserName () As String

Returns

The user name.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see USER_NAME (Transact-SQL).

Applies to

UserName(Nullable<Int32>)

Returns a database user name corresponding to a specified identification number.

public:
 static System::String ^ UserName(Nullable<int> arg);
[System.Data.Objects.DataClasses.EdmFunction("SqlServer", "USER_NAME")]
public static string UserName (int? arg);
[<System.Data.Objects.DataClasses.EdmFunction("SqlServer", "USER_NAME")>]
static member UserName : Nullable<int> -> string
Public Shared Function UserName (arg As Nullable(Of Integer)) As String

Parameters

arg
Nullable<Int32>

A user ID.

Returns

The user name.

Attributes

Remarks

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see USER_NAME (Transact-SQL).

Applies to