SqlFunctions.UserName Method

 

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

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

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticUserName()

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

System_CAPS_pubmethodSystem_CAPS_staticUserName(Nullable<Int32>)

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


SqlFunctions.UserName Method ()

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

[DbFunctionAttribute("SqlServer", "USER_NAME")]
public static string UserName()

Return Value

Type: System.String

The user name.


SqlFunctions.UserName Method (Nullable<Int32>)

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

[DbFunctionAttribute("SqlServer", "USER_NAME")]
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", 
	MessageId = "arg")]
public static string UserName(
	Nullable<int> arg
)

Parameters

arg
Type: System.Nullable<Int32>

A user ID.

Return Value

Type: System.String

The user name.