I am trying to delete record from table with proper mapping
from linq to sql.There is an error stating that Rmove method not found and are u missing an assembly reference.
What exactly requires to do?
AdventureWorks db = new AdventureWorks("Integrated Security=sspi");
var query = from con in db.Contact
where con.LastName == "Klein"
foreach (Contact del in query)
db.Contact.Remove(del);//???Remove not working
textBox1.Text = "Contact deleted.";
Thank you in advance
View Complete Post