DotNetSolutions
Wednesday, January 19, 2011
Delete Query in Linq in asp.net
MyLinqDataClassesDataContext mylinq = new MyLinqDataClassesDataContext();
var deleteuser = from p in mylinq.userCredentials
where p.uname_db.Contains(TextBox3.Text)
select p;
mylinq.userCredentials.DeleteAllOnSubmit(deleteuser);
mylinq.SubmitChanges();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment