I have the following relation
public partial class SharedResource : DomainEntity
{
public System.Guid Id { get; set; }
public System.Guid VersionId { get; set; }
public virtual PackageVersion PackageVersion { get; set; } // tried it noth with and without virtual
}
Now, I load SharedResource using
SharedResource sharedResource = Get(shareKey)
And
sharedResource.PackageVersion == null.
though VersionId is not null and
context.Configuration.LazyLoadingEnabled = false;
What do I have to do in order to load it