📄 itemtype.cs
字号:
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
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -