From: <fab...@us...> - 2010-08-06 23:19:44
|
Revision: 5121 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5121&view=rev Author: fabiomaulo Date: 2010-08-06 23:19:38 +0000 (Fri, 06 Aug 2010) Log Message: ----------- Minor (renamed private field) Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Impl/MultiQueryImpl.cs Modified: trunk/nhibernate/src/NHibernate/Impl/MultiQueryImpl.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Impl/MultiQueryImpl.cs 2010-08-06 23:17:22 UTC (rev 5120) +++ trunk/nhibernate/src/NHibernate/Impl/MultiQueryImpl.cs 2010-08-06 23:19:38 UTC (rev 5121) @@ -26,7 +26,7 @@ private readonly IList<System.Type> resultCollectionGenericType = new List<System.Type>(); private readonly List<QueryParameters> parameters = new List<QueryParameters>(); private IList queryResults; - private readonly Dictionary<string, int> criteriaResultPositions = new Dictionary<string, int>(); + private readonly Dictionary<string, int> queryResultPositions = new Dictionary<string, int>(); private string cacheRegion; private int commandTimeout = RowSelection.NoValue; private bool isCacheable; @@ -320,7 +320,7 @@ public IMultiQuery Add<T>(string key, IQuery query) { ThrowIfKeyAlreadyExists(key); - criteriaResultPositions.Add(key, AddQueryForLaterExecutionAndReturnIndexOfQuery(typeof(T), query)); + queryResultPositions.Add(key, AddQueryForLaterExecutionAndReturnIndexOfQuery(typeof(T), query)); return this; } @@ -682,12 +682,12 @@ queryResults = List(); } - if (!criteriaResultPositions.ContainsKey(key)) + if (!queryResultPositions.ContainsKey(key)) { throw new InvalidOperationException(String.Format("The key '{0}' is unknown", key)); } - return queryResults[criteriaResultPositions[key]]; + return queryResults[queryResultPositions[key]]; } private int BindLimitParametersFirstIfNeccesary(IDbCommand command, int queryIndex, int colIndex) @@ -801,7 +801,7 @@ private void ThrowIfKeyAlreadyExists(string key) { - if (criteriaResultPositions.ContainsKey(key)) + if (queryResultPositions.ContainsKey(key)) { throw new InvalidOperationException(String.Format("The key '{0}' already exists", key)); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |