using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    /// <summary>
    /// 菜肴类型对象
    /// </summary>
    [Serializable]
    public class ItemType
    {
        #region 私有变量
        private int itemTypeId;
        private string typeName;
        #endregion

        #region 构造函数
        /// <summary>
        /// 菜肴类型的构造函数
        /// </summary>
        /// <param name="typeName">类型名称</param>
        public ItemType(string typeName)
        {
            this.typeName = typeName;
        }

        /// <summary>
        /// 菜肴类型的构造函数
        /// </summary>
        /// <param name="itemTypeId">菜肴类型ID</param>
        /// <param name="typeName">类型名称</param>
        public ItemType(int itemTypeId, string typeName)
        {
            this.itemTypeId = itemTypeId;
            this.typeName = typeName;
        }
        #endregion

        #region 属性
        /// <summary>
        /// 菜肴类型编号
        /// </summary>
        public int ItemTypeId
        {
            get { return this.itemTypeId; }
        }

        /// <summary>
        /// 菜肴类型名称
        /// </summary>
        public string TypeName
        {
            get { return this.typeName; }
            set { this.typeName = value; }
        }
        #endregion
    }
}
