using System;
using System.Collections.Generic;
using System.Text;
using Howest.SchemaDiscovery.DbObjects;
using System.ComponentModel;
using System.Drawing.Design;
using Howest.Guidance.DataAccess.Converters;

namespace Howest.Guidance.DataAccess.CodeGeneration.ObjectModel
{
	public class DBDataTypeWrapper
	{
		DbDataType _dbType;

		public DBDataTypeWrapper(DbDataType dbType)
		{
			_dbType = dbType;
		}
		//private Type _type;

		[TypeConverter(typeof(ValueTypeFromStringConverter))]
		//[Editor(typeof(ClassBrowserEditor), typeof(UITypeEditor))]
		public Type Type
		{
			get { return _dbType.Type; }
			set { _dbType.Type = value; }
		}

		//private DatabaseType _providerType;

		public DatabaseType ProviderType
		{
			get { return _dbType.ProviderType; }
			set { _dbType.ProviderType = value; }
		}

		public short Scale { get { return _dbType.Scale; } set { _dbType.Scale = value; } }
		public int Size { get { return _dbType.Size; } set { _dbType.Size = value; } }

		public short Precision { get { return _dbType.Precision; } set { _dbType.Precision = value; } }
	}
}
