Update data programmatically using EntityDataSource
Posted
by Vinay
on Stack Overflow
See other posts from Stack Overflow
or by Vinay
Published on 2010-04-13T14:01:01Z
Indexed on
2010/04/13
14:03 UTC
Read the original article
Hit count: 605
ASP.NET
|entity-framework
Hello guys,
I want to update the data using programmatically in code behind using EntityDataSource.
I have done the samething using Update method of LINQ Datasource. sample code snippet
int id => Convert.ToInt32(e.CommandArgument);
ListDictionary keyValues = new ListDictionary(); ListDictionary newValues = new ListDictionary(); ListDictionary oldValues = new ListDictionary(); keyValues.Add("ReviewID", id); oldValues.Add("IsActive", "IsActive"); newValues.Add("IsActive", "false"); GridDataSource.Update(keyValues,newValues, oldValues);
Can I achieve the same thing using EntityDataSource?
Thanks, Vinay
© Stack Overflow or respective owner