1

Resolved

.With(Expression<Func<TEntity entity, object>> path) returns Void

description

The With method created to provide eager loading is returning Void right now. I believe it should be returning IRepository<TEntity>, or at least IQueryable<TEntity>. I'm using this with the EntityFramework.
 
For example, the following code won't compile:
 
string emailAddress = "test@test.com"; var person = (from person in personRepository.With(p => p.Nicknames)
                where person.Email == emailAddress
                select person).FirstOrDefault();

comments

riteshrao wrote Feb 27, 2009 at 2:03 PM

I've fixed this in source. With will return the repository instance so you can chain the linq query while using With, like in your example above.

Sorry for the late response, for some reason CodePlex did not send me a notification that this issue was added.

Thanks,
Ritesh

wrote Feb 27, 2009 at 2:06 PM

wrote Feb 13, 2013 at 11:28 PM

wrote May 16, 2013 at 3:29 AM

wrote May 16, 2013 at 3:29 AM

wrote Jun 14, 2013 at 7:26 AM