I have a webforms project using EF codefirst to persist data. I\'d like to use a GridView and EntityDataSource, in order to save writing CRUD. Is this possible?
Can
Try this one ->
protected void OrdersDataSource_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e) { var context = new YourContext(); e.Context = ((IObjectContextAdapter)context).ObjectContext; }