Delete a specific row using LINQ

Here we are having a table in the Database name DBentities .
The name of the table is Employee.
here we are deleting a row where emplyee_id is emp_id

var v = from row in dbentities.employee 
where employee_id==emp_id select row


if(v != null)
{
dbentities.employee.remove(v);
}



Comments

Popular posts from this blog

Installing and using LESS.(PART- 1)

What is Monitoring in SharePoint 2103? What are the other option in SharePoint 2013?

What is Application Management? What are the meaning of the other options Available in Application Management in SharePoint 2013?