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:

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


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:


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)) %>

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

Comments

No comments yet.