Skip to content

Commit

Permalink
/submodels with DB
Browse files Browse the repository at this point in the history
First step
Load all packages into memory
  • Loading branch information
aorzelskiGH committed Nov 20, 2024
1 parent b22c308 commit 5de002b
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,13 @@ public List<ISubmodel> GetSubmodelsByIdShort(string idShort)
/// <returns>A list of all submodels.</returns>
public List<ISubmodel> 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<ISubmodel>();

foreach (var package in _packages)
Expand Down

0 comments on commit 5de002b

Please sign in to comment.