This project has moved. For the latest updates, please go here.
About DbDataSource
DbDataSource is a ASP.NET WebForms DataSource control for simple use with EntityFramework CodeFirst.

You can add a datasource in your markup like so:

<ss:DbDataSource ID="source" runat="server" Source="Namespace.MyDbContext.MyDbSetProperty" />

You can also filter the result with LINQ in the Where property and select values with the Select property like so:

Where:

<% source.Where = set => set.OfType<MyEntityType>().Where(s => My where expression here)) %>

Select:

<% source.Select = set => set.OfType<MyEntityType>().Select(s => My select expression here)) %>

Note: If you set the Select property, you cannot insert, update and delete anymore on the DataSource.



Last edited Nov 16, 2013 at 7:38 PM by simonegli, version 7