You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that I am running the latest version of the EcoreNetto
I have searched open and closed issues to ensure it has not already been reported
Description
Summary:ResourceSet.Resource(Uri uri, bool loadOnDemand) ignores loadOnDemand: it only searches existing resources and returns null when not found, never creating/loading on demand. The parameter is part of the contract but has no effect.
Proposed solution: When loadOnDemand is true and no matching resource exists, create and load it (mirroring the demand-load already done in Resource.GetEObject).
Acceptance criteria:
With loadOnDemand: true, a not-yet-loaded resource is created and loaded.
Prerequisites
Description
ResourceSet.Resource(Uri uri, bool loadOnDemand)ignoresloadOnDemand: it only searches existing resources and returnsnullwhen not found, never creating/loading on demand. The parameter is part of the contract but has no effect.ECoreNetto/Resource/ResourceSet.cs:146-162loadOnDemandis true and no matching resource exists, create and load it (mirroring the demand-load already done inResource.GetEObject).loadOnDemand: true, a not-yet-loaded resource is created and loaded.loadOnDemand: false, behavior is unchanged.