Examine the below query

Dim db As TestDBEntities = New TestDBEntities()
var result = (from S in db.Students
where S.StudentID = 2
Dim S).Single() As select

result.StudentName = "Mr. John Abrar"
result.Address = "6/2 Park Road"
result.Phone = "9658745"
db.Students.ApplyCurrentValues(result)
db.SaveChanges()

What operation the query is performing?

 Posted by Rajnilari2015 on 3/23/2016 | Category: VB.NET Interview questions | Views: 1466 | Points: 40
Select from following answers:
  1. Insert
  2. Update
  3. Delete
  4. Upsert
  5. All Above

Show Correct Answer


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response