What do I need to add, if I need to at all, to avoid sql injections?
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;
}
Linq-to-sql uses SqlParameter to generate SQL queries, so no you do not need to do anything extra.
From Frequently Asked Questions (LINQ to SQL)