.net - Can I get EnableUpdate and EnableDelete to work on an EF4 LinqDataSource? -


so started using linq-to-sql 2 years ago, company pushing me switch entity framework v4. don't want l2s vs ef arguments here, please assume cannot switch l2s.

anyway, in ol' l2s, i'd define gridview or listview, linqdatasource enableupdate=true, enabledelete=true , enableinsert=true. i'd assign datasourceid of teh gridview or listview id of linqdatasource , bam! instant crud.

with ef4 however, seems automatic codeless crud missing. visual studio 2010 design screen, gridview tasks window not show "enable editing" or "enable deleting". these items used appear in l2s apps, , furthermore, when manually add enablex=true properties linqdatasource, error when attempt update: "the data context used linqdatasource 'lds1' must extend datacontext when delete, insert or update operations enabled."

so there way make ef4 obey enableupdate/delete/insert commands on linqdatasource?

thanks!

first of linqdatasource component linq-to-sql. must use entitydatasource work on top of entity framework. solve issue.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -