Update data programmatically using EntityDataSource
- by Vinay
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