C#
I want to search a record in Sql server management database in windows application step by step process
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Ramesh MaruthiPosted Aug 22, 2014, 1:11 PM
Do you want to search a record in a database or in a table ?
and how do you wanna search depends upon what condition ?
for example :
I want to search the student record according to the studentid on a student table so what I do is
Public student Studentsearchwithid(int id
{
student res = db.students.where(k =>k.studentid == id).FirstOrDefault();
return res;
}