how to modify the list which is obtained by linq
how to modify the value of column in linq?
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.
Lawrence PondPosted Sep 17, 2014, 1:11 AM
var cust = (from c in customers
where c.CustomerID == "ALFKI"
select c).FirstOrDefault();
cust.City = "Achalpur";
// this would change the city
Then you would have to save the back to table.
Lawrence PondPosted Sep 17, 2014, 1:11 AM
var cust = (from c in customers
where c.CustomerID == "ALFKI"
select c).FirstOrDefault();
cust.City = "Achalpur";
// this would change the city
Then you would have to save the back to table.
Lawrence PondPosted Sep 17, 2014, 1:11 AM
var cust = (from c in customers
where c.CustomerID == "ALFKI"
select c).FirstOrDefault();
cust.City = "Achalpur";
// this would change the city
Then you would have to save the back to table.
Lawrence PondPosted Sep 17, 2014, 1:11 AM
var cust = (from c in customers
where c.CustomerID == "ALFKI"
select c).FirstOrDefault();
cust.City = "Achalpur";
// this would change the city
Then you would have to save the back to table.
Lawrence PondPosted Sep 17, 2014, 1:11 AM
var cust = (from c in customers
where c.CustomerID == "ALFKI"
select c).FirstOrDefault();
cust.City = "Achalpur";
// this would change the city
Then you would have to save the back to table.
Lawrence PondPosted Sep 17, 2014, 1:11 AM
var cust = (from c in customers
where c.CustomerID == "ALFKI"
select c).FirstOrDefault();
cust.City = "Achalpur";
// this would change the city
Then you would have to save the back to table.
Lawrence PondPosted Sep 17, 2014, 1:11 AM
var cust = (from c in customers
where c.CustomerID == "ALFKI"
select c).FirstOrDefault();
cust.City = "Achalpur";
// this would change the city
Then you would have to save the back to table.
Abhishek KumarPosted Sep 9, 2014, 8:58 AM
Is it possible to share your code?
Abhishek