Adds an import to allow for the full class name Namespace.Entity (AssemblyQualifiedName)
to be referenced as Entity or some other name in HQL.
Namespace: NHibernate.CfgAssembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)
Syntax
C# |
---|
public void AddImport( string className, string rename ) |
Visual Basic |
---|
Public Sub AddImport ( _ className As String, _ rename As String _ ) |
Visual C++ |
---|
public: void AddImport( String^ className, String^ 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. |