📄 class1.cs~rf2bb988e.tmp
字号:
using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
namespace DAL
{
public class Class1
{
public bool GetInfo(string strusername,string struserpwd)
{
SqlConnection cn = new SqlConnection("server=.;database=ClassSay;uid=sa;pwd=123");
cn.Open();
string str = "select Count(*) from ClassUserID where UserName='" + strusername + "' and UserPassword='" + struserpwd + "'";
SqlCommand cm = new SqlCommand(str, cn);
return ((int)cm.ExecuteScalar()!=0);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -