This project is read-only.

Using autocompiler with EF 4.3.1 Code First

Dec 11, 2012 at 1:57 PM

I've downloaded and referenced assemblies Nexterday.Autocompiler.EF4, Nexterday.Autocompiler and LinqKit.

If I try to modify my original query

using (var db = GetEprotonContext())
            {                
                IQueryable<EprotonUser> eprotonUsers =
                    from eprotonUser in db.Users
                        .Include("DefaultSMTPAddress")
                        .Include("Password")
                        .OfType<EprotonUser>()
                    select eprotonUser;
}
to
using (var db = GetEprotonContext())
            {                
                IQueryable<EprotonUser> eprotonUsers =
                    from eprotonUser in db.Users.AsCompilable()
                        .Include("DefaultSMTPAddress")
                        .Include("Password")
                        .OfType<EprotonUser>()
                    select eprotonUser;
}

 I receive compile error that there is no extension method AsCompilable accepting DbSet<User> as first parameter.
Your autocompiler doesn't support Code First approach?