持久化
This commit is contained in:
parent
859551b39b
commit
df59c9fb02
@ -51,6 +51,7 @@ namespace PLCSharp.VVMs.GlobalVariables
|
||||
var variables = _DatasContext.Variables.Where(c => c.RecipeID == CurrentRecipeID);
|
||||
foreach (var item in variables)
|
||||
{
|
||||
item._DatasContext = _DatasContext;
|
||||
if (item.RetainPersistent)
|
||||
{
|
||||
|
||||
@ -71,6 +72,7 @@ namespace PLCSharp.VVMs.GlobalVariables
|
||||
var systemVariables = _DatasContext.SystemVariables.Where(c => c.RecipeID == CurrentRecipeID);
|
||||
foreach (var item in systemVariables)
|
||||
{
|
||||
item._DatasContext = _DatasContext;
|
||||
if (item.RetainPersistent)
|
||||
{
|
||||
|
||||
@ -175,4 +177,4 @@ namespace PLCSharp.VVMs.GlobalVariables
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user