I've looked around stack overflow and can't find an answer for this anywhere.
Say I have a class Man
class Man
{
protected virtual ICollection<Cat> Cats {get; set;}
}
class ManMapping : ClassMap<Man>
{
HasMany(Reveal.Member<Man, IEnumerable<Cat>>("Cats"))
.KeyColumn("ManId")
.Cascade.All();
}
I know that if it was a public property I could use .fetch() to eager load it, but I can't find a way to eager load the collection when it's set to protected.
I should also mention that I'm looking to eager load in code on a case by case basis, not in the mappings.
Thanks.