2
如果我需要,我需要添加什麼來避免sql注入?Linq到SQL和SQL注入
public static Login GetLoginByName(string name)
{
var context=new telephonyEntities1();
Login t = (from l in context.Logins
where l.login1==name
select l).FirstOrDefault();
return t;
}