private ResultSetMappingDefinition Create(string name, object[] items)
		{
			ResultSetMappingDefinition definition = new ResultSetMappingDefinition(name);

			int count = 0;
			foreach (object item in items ?? new object[0])
			{
				count += 1;
				INativeSQLQueryReturn queryReturn = CreateQueryReturn(item, count);

				if (queryReturn != null)
					definition.AddQueryReturn(queryReturn);
			}

			return definition;
		}
		public void AddResultSetMapping(ResultSetMappingDefinition sqlResultSetMapping)
		{
			string name = sqlResultSetMapping.Name;
			if (resultSetMappings.ContainsKey(name))
			{
				throw new DuplicateMappingException("resultSet", name);
			}
			resultSetMappings[name] = sqlResultSetMapping;
		}