This project has moved and is read-only. For the latest updates, please go here.
Copy this dll to you bin folder and add the following to your web.config:

    <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="EntityFramework.Web.UI" />

You then can add a datasource in your markup like so:

<asp: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:


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


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

Last edited Nov 16, 2013 at 9:25 PM by simonegli, version 6


No comments yet.