Hi All,
how to exchange two column data in Entityframework ?
Like we have update query in sql
UPDATE dbo.Employee
SET custom1=custom2 , custom2=custom1
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.
Munesh SharmaPosted May 1, 2016, 11:29 AM
ali tuncerPosted Apr 27, 2016, 3:43 AM
I think you will need a variable to hold value..
s.Name = s.LastName
s.LastName = temp;
context.SaveChanges();