ModelExtensionsQuerySingleUser Method

Definition

Namespace: Centralpoint.Web.Models
Assembly: Centralpoint.Web (in Centralpoint.Web.dll) Version: 1.0.0.0 (1.0.0.0)
C#
public static UserModel QuerySingleUser(
	this SqlConnection connection,
	string sql,
	Object param,
	bool roles = false,
	bool audiences = false,
	bool navigationItems = false
)

Parameters

connection  SqlConnection
 
sql  String
 
param  Object
 
roles  Boolean  (Optional)
 
audiences  Boolean  (Optional)
 
navigationItems  Boolean  (Optional)
 

Return Value

UserModel

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SqlConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also