//===============================================================================
// Microsoft patterns & practices
// Web Service Software Factory
//===============================================================================
// Copyright  Microsoft Corporation.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===============================================================================
// The example companies, organizations, products, domain names,
// e-mail addresses, logos, people, places, and events depicted
// herein are fictitious.  No association with any real company,
// organization, product, domain name, email address, logo, person,
// places, or events is intended or should be inferred.
//===============================================================================

#region Using Statements
using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
//using Microsoft.Practices.ServiceFactory.DataAccess.CodeGeneration.ObjectModel.Mappings;
//using Microsoft.Practices.ServiceFactory.DataAccess.Converters;
using Microsoft.Practices.RecipeFramework.Extensions.Converters;
using Howest.Guidance.DataAccess.CodeGeneration.ObjectModel.Mappings; 
#endregion

namespace Howest.Guidance.DataAccess.CodeGeneration.ObjectModel
{
    /// <summary/>
    public class Entity
    {
        #region Entity Properties

        private string name;

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        [TypeConverter(typeof(CSharpIdentifierConverter))]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        private List<Property> properties;

        /// <summary>
        /// Gets or sets the properties.
        /// </summary>
        /// <value>The properties.</value>
        [Browsable(false)]
        public List<Property> Properties
        {
            get { return properties; }
            set { properties = value; }
        }
        #endregion

        #region Table Mappings
        private string tableName;
        /// <summary>
        /// Gets or sets the name of the table.
        /// </summary>
        /// <value>The name of the table.</value>
        [Browsable(false)]
        public string TableName
        {
            get { return tableName; }
            set { tableName = value; }
        }

		//private List<EntityStoredProcedureMapping> storedProcedureMappings;

		///// <summary>
		///// Gets or sets the stored procedure mappings.
		///// </summary>
		///// <value>The stored procedure mappings.</value>
		//[Browsable(false)]
		//public List<EntityStoredProcedureMapping> StoredProcedureMappings
		//{
		//    get { return storedProcedureMappings; }
		//    set { storedProcedureMappings = value; }
		//}

		private List<EntitySqlStatementMapping> _sqlStatementMappings = new List<EntitySqlStatementMapping>();

		public List<EntitySqlStatementMapping> SqlStatementMappings
		{
			get { return _sqlStatementMappings; }
		}
	
        #endregion

        #region Constructors
        /// <summary>
        /// Initializes a new instance of the <see cref="T:SqlServerTable"/> class.
        /// </summary>
        public Entity()
        {
            properties = new List<Property>();
            //storedProcedureMappings = new List<EntityStoredProcedureMapping>();
        } 
        #endregion
    }
}
