Created
April 20, 2012 10:39
-
-
Save kissarat/2427709 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using Johnny.Models; | |
using System.Data.Entity; | |
namespace Johnny.Data | |
{ | |
public class ArticleData : Repository<Article> | |
{ | |
public ArticleData(EntityContext context, DbSet<Article> dbSet) | |
: base(context, dbSet) | |
{ | |
} | |
public override Repository<Article> Raw | |
{ | |
get { return this as Repository<Article>; } | |
} | |
public IQueryable<Article> Fixup(IQueryable<Article> entitySet) | |
{ | |
return entitySet.Include(a => a.Author); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment