roomtype.cs

来自「《C#数据库项目案例导航》一书的配套光盘」· CS 代码 · 共 43 行

CS
43
字号
using System;
using System;
using System.Data;
using System.Data.SqlClient;
using System.Runtime.Serialization;



namespace HotelManage.DataLevl
{
	/// <summary>
	/// RoomType 的摘要说明。
	/// </summary>
	public class RoomType:DataSet
	{
		public RoomType()
		{
			
			//
			// TODO: 在此处添加构造函数逻辑
			//
		}
		private void BuildDataTables()
		{
			//
			// Create the Books table
			//
			DataTable table   = new DataTable("RoomType");
			DataColumnCollection columns = table.Columns;
            
			columns.Add("TypeID",typeof(System.String));
			columns.Add("TypeName",
			columns.Add(SystemFrameworks.Configuration.CATEGORY_SHOW, typeof(System.String));
			
			//
			// [Authors] is an optional column that will get added dynamically to the table schema
			// when the stored proc. GetBookById is used to fill the 'Books' table
			//
			this.Tables.Add(table);
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?