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

namespace ch11
{
   public class dormConn
    {
       public static string name = null;//定义全局变量，用于接收用户的数值
       public static string pw = null;
       
       public static string connection//静态的字符串，Static。
       {
           get 
           {
               return "Data Source=CXA100\\MSSQL;Initial Catalog=Dorm;Integrated Security=True";//Initial Catalog=Dorm与DataBase=Dorm。连接数据库的字符创
           } 
       }
    }
}
