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) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public static string GenerateAlias(
	string description,
	int unique
)
Visual Basic
Public Shared Function GenerateAlias ( _
	description As String, _
	unique As Integer _
) As String
Visual C++
public:
static String^ GenerateAlias(
	String^ description, 
	int unique
)

Parameters

description
Type: System..::..String

[Missing <param name="description"/> documentation for "M:NHibernate.Util.StringHelper.GenerateAlias(System.String,System.Int32)"]

unique
Type: System..::..Int32

[Missing <param name="unique"/> documentation for "M:NHibernate.Util.StringHelper.GenerateAlias(System.String,System.Int32)"]

Return Value

an alias of the form foo1_

See Also