Generate a nice alias for the given class name or collection role name and unique integer. Subclasses do not have to use aliases of this form.

Namespace:  NHibernate.Util
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function GenerateAlias ( _
	description As String, _
	unique As Integer _
) As String
C#
public static string GenerateAlias(
	string description,
	int unique
)
Visual C++
public:
static String^ GenerateAlias(
	String^ description, 
	int unique
)
JavaScript
NHibernate.Util.StringHelper.generateAlias = function(description, unique);

Parameters

description
Type: System..::.String
unique
Type: System..::.Int32

Return Value

an alias of the form foo1_

See Also