From d7ba03040d950d4d7bb085685dd5161f72a44245 Mon Sep 17 00:00:00 2001 From: James Cooper <92338148+cosive-james-cooper@users.noreply.github.com> Date: Fri, 22 Apr 2022 13:15:57 +1200 Subject: [PATCH] Update RulesEngineContext.cs (#347) This commit adds a line to RulesEngineContext.cs to make Entity Framework Core ignore WorkflowRulesToInject as well as WorkflowsToInject, which resolves an error causing the demo program to crash. This fixes issue #346. --- demo/DemoApp.EFDataExample/RulesEngineContext.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/DemoApp.EFDataExample/RulesEngineContext.cs b/demo/DemoApp.EFDataExample/RulesEngineContext.cs index f2b94d3..1422a8f 100644 --- a/demo/DemoApp.EFDataExample/RulesEngineContext.cs +++ b/demo/DemoApp.EFDataExample/RulesEngineContext.cs @@ -40,8 +40,9 @@ namespace RulesEngine.Data v => JsonSerializer.Deserialize(v, serializationOptions)); entity.Ignore(b => b.WorkflowsToInject); + entity.Ignore(b => b.WorkflowRulesToInject); }); } } -} \ No newline at end of file +}