我有以下的关系:
现在,我使用以下方式加载SharedResource:
虽然VersionId不为空且
![enter image description here](https://istack.dev59.com/gpUK1.webp)
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
}
现在,我使用以下方式加载SharedResource:
SharedResource sharedResource = Get(shareKey)
And
sharedResource.PackageVersion == null.
虽然VersionId不为空且
context.Configuration.LazyLoadingEnabled = false;
我需要怎么做才能加载它?