where c.工号 == this.gh.Text.Trim() && c.密码 == this.pwd.Text
select c.权限).ToList()
if (lst.Count < 0)
{
var entity = lst[0]
var right = entity.权限
switch(right)
{
case 0:
break
case 1:
break
//case 2,3,4......
default:
break
}
}
望采纳
from t1 in db.table1 join t2 in db.table2 on t1.num equals(t2.num) select new {Name=t1.name,Score=t1.score,Num=t1.num,Address=t2.Address}欢迎分享,转载请注明来源:内存溢出
评论列表(0条)