SqlFunctions.UserName SqlFunctions.UserName SqlFunctions.UserName SqlFunctions.UserName Method

Definition

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

Overloads

UserName() UserName() UserName() UserName()

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

UserName(Nullable<Int32>) UserName(Nullable<Int32>) UserName(Nullable<Int32>) 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() UserName() UserName() 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 ();
static member UserName : unit -> string
Public Shared Function UserName () As String

Returns

The user name.

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(Nullable<Int32>) UserName(Nullable<Int32>) UserName(Nullable<Int32>) 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 (Nullable<int> arg);
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.

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