using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;namespace sky
{     
    class Entrance
    {
        private SqlConnection conn;
        
        public Entrance()
        {
            opendb();
        }
        public void opendb()
        {
            conn = databse.getconn();
        }
        public bool login(string name, string pwd)
        {   string a;
            string b;
            a=name;
            b=pwd;
            SqlCommand comm = new SqlCommand("sel",conn);
            comm.CommandType = CommandType.StoredProcedure;
           //正常情况下有CommandType.StoredProcedure,为什么我在里面写的时候没有CommandType,comm.CommandType这个有,就是=号后面就没有       CommandType这一项
                
        }
        
    }
    }