/// <summary> 
		/// Creates a collection load context for the given result set. 
		/// </summary>
		/// <param name="loadContexts">Callback to other collection load contexts. </param>
		/// <param name="resultSet">The result set this is "wrapping".</param>
		public CollectionLoadContext(LoadContexts loadContexts, IDataReader resultSet)
		{
			this.loadContexts = loadContexts;
			this.resultSet = resultSet;
		}
 /// <summary>
 /// Creates a collection load context for the given result set.
 /// </summary>
 /// <param name="loadContexts">Callback to other collection load contexts. </param>
 /// <param name="resultSet">The result set this is "wrapping".</param>
 public CollectionLoadContext(LoadContexts loadContexts, DbDataReader resultSet)
 {
     this.loadContexts = loadContexts;
     this.resultSet    = resultSet;
 }
		private void InitTransientState()
		{
			loadContexts = null;
			nullAssociations = new HashedSet<AssociationKey>();
			nonlazyCollections = new List<IPersistentCollection>(InitCollectionSize);
		}
Exemplo n.º 4
0
		private readonly IList hydratingEntities = new ArrayList(20); // todo : need map? the prob is a proper key, right?

		public EntityLoadContext(LoadContexts loadContexts, IDataReader resultSet)
		{
			this.loadContexts = loadContexts;
			this.resultSet = resultSet;
		}