Gets or sets a boolean indicating if the Fully Qualified Type name should automatically have an import added as the class name.

Namespace: NHibernate.Cfg
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
public bool IsAutoImport { get; set; }
Visual Basic
Public Property IsAutoImport As Boolean
	Get
	Set
Visual C++
public:
property bool IsAutoImport {
	bool get ();
	void set (bool value);
}

Field Value

trueTruetruetrue (True in Visual Basic) if the class name should be used as an import.

Remarks

Auto-import is used to shorten the string used to refer to types to just their unqualified name. So if the type MyAssembly.MyNamespace.MyClass, MyAssembly has auto-import="false" then all use of it in HQL would need to be the fully qualified version MyAssembly.MyNamespace.MyClass. If auto-import="true", the type could be referred to in HQL as just MyClass.

See Also