itemtype.cs
来自「酒店在线订餐管理系统」· CS 代码 · 共 60 行
CS
60 行
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 + =
减小字号Ctrl + -
显示快捷键?