【发布时间】:2011-05-05 15:03:19
【问题描述】:
如果需要,我需要添加什么来避免 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;
}
【问题讨论】: