/EntityFramework6

Support for DynamicData provider and EF DataSource control

Primary LanguageJavaScript

Web Forms sample for EF6 support in DynamicData and Entity Data Source control

###Getting Started

This sample shows how you can use Entity Framework 6 in DynamicData and Web Forms Application. Read this post about adding this support http://blogs.msdn.com/b/webdev/archive/2014/02/28/announcing-the-release-of-dynamic-data-provider-and-entitydatasource-control-for-entity-framework-6.aspx

Run the DynamicData Sample:

  1. Build the solution which will do a NuGet package restore
  2. Start the DynamicData Provider project
  3. It uses Northwind database and Northwind EF 6 Code First Model
  4. Browse to Products
  5. Filter by Category
  6. Add a new Product and show that categories can be added (Foreign Key support)
  7. Navigate between Employees and Territories (Many-Many relationship support)
  • Navigate to Employees
  • Edit an Employee
  • Select the Territories that the Employee belongs to. (this shows Many-many)
  • Update Employee

For more information on DynamicData see the following resources

Run the Entity DataSource Sample:

  1. Build the solution which will do a NuGet package restore
  2. Start the EntityDataSource project
  3. It uses Northwind database and Northwind EF 6 Code First Model
  4. Default page has a GridView and DetailsView which are bounded to the new EntityDataSourceControl for EF 6
  5. Browse to Default page
  6. See all the Categories
  7. Add a new Category using DetailsView control and see the new item added in the Grid
  8. In the GridView you can do sorting (Category Id & name), paging (default pagesize is 10)
  9. Edit a Category in the GridView
  10. Delete a Category in the GridView

For more information on EntityDataSource Control see the following resources