diff --git a/src/AasxServerStandardBib/Services/AdminShellPackageEnvironmentService.cs b/src/AasxServerStandardBib/Services/AdminShellPackageEnvironmentService.cs index d7fca3e6..ae96f169 100644 --- a/src/AasxServerStandardBib/Services/AdminShellPackageEnvironmentService.cs +++ b/src/AasxServerStandardBib/Services/AdminShellPackageEnvironmentService.cs @@ -573,6 +573,13 @@ public List GetSubmodelsByIdShort(string idShort) /// A list of all submodels. public List GetAllSubmodels() { + if (Program.withDb) + { + // workround to have submodels in memory + // will only work if all packages fit into memory + Program.LoadAllPackages(); + } + var output = new List(); foreach (var package in _packages)