Adds an import to allow for the full class name Namespace.Entity
to be referenced as Entity or some other name in HQL.
Namespace:
NHibernate.CfgAssembly: NHibernate (in NHibernate.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Sub AddImport ( _ className As String, _ rename As String _ ) |
C# |
---|
public void AddImport( string className, string rename ) |
Visual C++ |
---|
public: void AddImport( String^ className, String^ rename ) |
JavaScript |
---|
function addImport(className, rename); |
Parameters
- className
- Type: System..::.String
The name of the type that is being renamed.
- rename
- Type: System..::.String
The new name to use in HQL for the type.
Exceptions
Exception | Condition |
---|---|
NHibernate..::.MappingException | Thrown when the rename already identifies another type. |