Delete query in Linq
Posted
by Ani
on Stack Overflow
See other posts from Stack Overflow
or by Ani
Published on 2010-04-26T23:40:05Z
Indexed on
2010/04/26
23:43 UTC
Read the original article
Hit count: 250
delete
|linq-to-sql
I have this simple code but it shows error. I dont know where I am going wrong. I shows error in last line.."DeleteOnSubmit" linq_testDataContext db = new linq_testDataContext();
var remove = from aremove in db.logins where aremove.username == userNameString && aremove.Password == pwdString select aremove; db.logins.DeleteOnSubmit(remove);
Thanks, Ani
© Stack Overflow or respective owner