Пример #1
0
		/// <summary>
		/// Clear the internal state of the <see cref="Configuration"/> object.
		/// </summary>
		private void Reset()
		{
			classes = new Dictionary<string, PersistentClass>(); //new SequencedHashMap(); - to make NH-369 bug deterministic
			imports = new Dictionary<string, string>();
			collections = new Dictionary<string, NHibernate.Mapping.Collection>();
			tables = new Dictionary<string, Table>();
			namedQueries = new Dictionary<string, NamedQueryDefinition>();
			namedSqlQueries = new Dictionary<string, NamedSQLQueryDefinition>();
			sqlResultSetMappings = new Dictionary<string, ResultSetMappingDefinition>();
			secondPasses = new List<SecondPassCommand>();
			propertyReferences = new List<Mappings.PropertyReference>();
			filterDefinitions = new Dictionary<string, FilterDefinition>();
			interceptor = emptyInterceptor;
			properties = Environment.Properties;
			auxiliaryDatabaseObjects = new List<IAuxiliaryDatabaseObject>();
			sqlFunctions = new Dictionary<string, ISQLFunction>();
			mappingsQueue = new MappingsQueue();
			eventListeners = new EventListeners();
			typeDefs = new Dictionary<string, TypeDef>();
			extendsQueue = new HashedSet<ExtendsQueueEntry>();
			tableNameBinding = new Dictionary<string, Mappings.TableDescription>();
			columnNameBindingPerTable = new Dictionary<Table, Mappings.ColumnNames>();
		}
		/// <summary>
		/// Clear the internal state of the <see cref="Configuration"/> object.
		/// </summary>
		private void Reset()
		{
			classes = new Hashtable(); //new SequencedHashMap(); - to make NH-369 bug deterministic
			imports = new Hashtable();
			collections = new Hashtable();
			tables = new Hashtable();
			namedQueries = new Hashtable();
			namedSqlQueries = new Hashtable();
			sqlResultSetMappings = new Hashtable();
			secondPasses = new ArrayList();
			propertyReferences = new ArrayList();
			filterDefinitions = new Hashtable();
			interceptor = emptyInterceptor;
			mapping = new Mapping(this);
			properties = Environment.Properties;
			auxiliaryDatabaseObjects = new ArrayList();
			sqlFunctions = new Hashtable();
			mappingsQueue = new MappingsQueue();
		}