From: <fab...@us...> - 2011-06-16 17:00:06
|
Revision: 5937 http://nhibernate.svn.sourceforge.net/nhibernate/?rev=5937&view=rev Author: fabiomaulo Date: 2011-06-16 16:59:59 +0000 (Thu, 16 Jun 2011) Log Message: ----------- Removed no more needed code Modified Paths: -------------- trunk/nhibernate/src/NHibernate/Engine/QueryParameters.cs Modified: trunk/nhibernate/src/NHibernate/Engine/QueryParameters.cs =================================================================== --- trunk/nhibernate/src/NHibernate/Engine/QueryParameters.cs 2011-06-16 16:51:52 UTC (rev 5936) +++ trunk/nhibernate/src/NHibernate/Engine/QueryParameters.cs 2011-06-16 16:59:59 UTC (rev 5937) @@ -1,6 +1,7 @@ using System; using System.Collections; using System.Collections.Generic; +using System.Linq; using NHibernate.Impl; using NHibernate.Param; using NHibernate.SqlCommand; @@ -22,12 +23,8 @@ private IType[] _positionalParameterTypes; private object[] _positionalParameterValues; - private int[] _positionalParameterLocations; private IDictionary<string, TypedValue> _namedParameters; private IDictionary<string, LockMode> _lockModes; - private IList<IType> filteredParameterTypes; - private IList<object> filteredParameterValues; - private IList<int> filteredParameterLocations; private RowSelection _rowSelection; private bool _cacheable; private string _cacheRegion; @@ -118,11 +115,6 @@ set { _positionalParameterTypes = value; } } - public int[] PositionalParameterLocations - { - get { return _positionalParameterLocations; } - } - /// <summary> /// Gets or sets an array of <see cref="object"/> objects that is stored at the index /// of the Parameter. @@ -284,11 +276,8 @@ var copy = new QueryParameters(_positionalParameterTypes, _positionalParameterValues, _namedParameters, _lockModes, selection, _isReadOnlyInitialized, _readOnly, _cacheable, _cacheRegion, _comment, _collectionKeys, _optionalObject, _optionalEntityName, _optionalId, _resultTransformer); - copy._positionalParameterLocations = _positionalParameterLocations; copy.processedSQL = processedSQL; - copy.filteredParameterTypes = filteredParameterTypes; - copy.filteredParameterValues = filteredParameterValues; - copy.filteredParameterLocations = filteredParameterLocations; + copy.ProcessedSqlParameters = ProcessedSqlParameters.ToList(); return copy; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |