LazyLoadingEnabledshould be true, not false:
context.Configuration.LazyLoadingEnabled = true;
trueis the default if you do not install at all LazyLoadingEnabled.
And the property PackageVersionmust be virtualin order to enable lazy loading for this property.
Or you can include the property directly in the request:
SharedResource sharedResource = context.SharedResource
.Include("PackageVersion")
.SingleOrDefault(s => s.Id == shareKey);
source
share