예제 #1
0
        //注册用户
        public int register(string un, string pd)
        {
            DataTable u = new Connection().User(un);

            if (u.Rows.Count == 0)
            {
                string s1 = "insert into [db_BMS].[dbo].[db_User](UseName,Passwd) values ('" + un + "','" + pd + "')";
                return(db.ExecuteNonQuery(s1));
            }
            else
            {
                return(10);
            }
        }