Namespaces

Types

Type Mappings

Namespace NHibernate.Cfg

Methods

Properties

Public instance methods

void AddAuxiliaryDatabaseObject(IAuxiliaryDatabaseObject auxiliaryDatabaseObject)

Parameters
IAuxiliaryDatabaseObject auxiliaryDatabaseObject

void AddClass(PersistentClass persistentClass)

Parameters
PersistentClass persistentClass

void AddCollection(Collection collection)

Parameters
Collection collection

void AddFilterDefinition(FilterDefinition definition)

Parameters
FilterDefinition definition

void AddImport(string className, string rename)

Adds an import to allow for the full class name Namespace.Entity to be referenced as Entity or some other name in HQL.
Parameters
string className The name of the type that is being renamed.
string rename The new name to use in HQL for the type.

void AddQuery(string name, NamedQueryDefinition query)

Parameters
string name
NamedQueryDefinition query

void AddResultSetMapping(ResultSetMappingDefinition sqlResultSetMapping)

Parameters
ResultSetMappingDefinition sqlResultSetMapping

void AddSQLQuery(string name, NamedSQLQueryDefinition query)

Parameters
string name
NamedSQLQueryDefinition query

Table AddTable(string schema, string name)

Parameters
return Table
string schema
string name

void AddUniquePropertyReference(Type referencedClass, string propertyName)

Parameters
Type referencedClass
string propertyName

bool Equals(object obj)

Parameters
return bool
object obj

PersistentClass GetClass(Type type)

Parameters
return PersistentClass
Type type

PersistentClass GetClass(string entityName)

Parameters
return PersistentClass
string entityName

Collection GetCollection(string role)

Parameters
return Collection
string role

FilterDefinition GetFilterDefinition(string name)

Parameters
return FilterDefinition
string name

int GetHashCode()

Parameters
return int

NamedQueryDefinition GetQuery(string name)

Parameters
return NamedQueryDefinition
string name

Table GetTable(string schema, string name)

Parameters
return Table
string schema
string name

Type GetType()

Parameters
return Type

string ToString()

Parameters
return string

Public properties

string DefaultAccess get; set;

return string

string DefaultAssembly get; set;

The default assembly for persistent classes
return string

string DefaultCascade get; set;

return string

bool DefaultLazy get; set;

return bool

string DefaultNamespace get; set;

The default namespace for persistent classes
return string

IDictionary FilterDefinitions get;

return IDictionary

bool IsAutoImport get; set;

Gets or sets a boolean indicating if the Fully Qualified Type name should automattically have an import added as the class name.
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 .
return bool

INamingStrategy NamingStrategy get;

return INamingStrategy

string SchemaName get; set;

return string