﻿using System;
namespace Light.DataCore
{
	class LightNewArrayDataFieldInfo : LightDataFieldInfo
	{
		readonly object [] _values;

		public LightNewArrayDataFieldInfo (DataEntityMapping mapping, params object [] values)
			: base (mapping)
		{
			if (values == null)
				throw new ArgumentNullException (nameof (values));
			this._values = values;
		}

		public object [] Values {
			get {
				return _values;
			}
		}

		internal override string CreateSqlString (CommandFactory factory, bool isFullName, CreateSqlState state)
		{
			throw new NotSupportedException ();
		}
	}
}

