From 6165d52cfcfa994401b1b81af6c6744ac5f26a5e Mon Sep 17 00:00:00 2001 From: Frank Alvarez Date: Tue, 23 Jul 2024 17:33:38 -0400 Subject: [PATCH] Fix broken CustomTypeProvider due to additional constructor parameter in DefaultDynamicLinqCustomTypeProvider --- src/RulesEngine/CustomTypeProvider.cs | 3 ++- src/RulesEngine/RulesEngine.csproj | 4 ++-- test/RulesEngine.UnitTest/RulesEngine.UnitTest.csproj | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/RulesEngine/CustomTypeProvider.cs b/src/RulesEngine/CustomTypeProvider.cs index df1359d0..1d5e3e76 100644 --- a/src/RulesEngine/CustomTypeProvider.cs +++ b/src/RulesEngine/CustomTypeProvider.cs @@ -4,6 +4,7 @@ using RulesEngine.HelperFunctions; using System; using System.Collections.Generic; +using System.Linq.Dynamic.Core; using System.Linq.Dynamic.Core.CustomTypeProviders; namespace RulesEngine @@ -11,7 +12,7 @@ namespace RulesEngine public class CustomTypeProvider : DefaultDynamicLinqCustomTypeProvider { private HashSet _types; - public CustomTypeProvider(Type[] types) : base() + public CustomTypeProvider(Type[] types) : base(ParsingConfig.Default) { _types = new HashSet(types ?? new Type[] { }); _types.Add(typeof(ExpressionUtils)); diff --git a/src/RulesEngine/RulesEngine.csproj b/src/RulesEngine/RulesEngine.csproj index c69e49bd..6c223d0f 100644 --- a/src/RulesEngine/RulesEngine.csproj +++ b/src/RulesEngine/RulesEngine.csproj @@ -36,12 +36,12 @@ - + - + diff --git a/test/RulesEngine.UnitTest/RulesEngine.UnitTest.csproj b/test/RulesEngine.UnitTest/RulesEngine.UnitTest.csproj index 7dd46275..1452b5a0 100644 --- a/test/RulesEngine.UnitTest/RulesEngine.UnitTest.csproj +++ b/test/RulesEngine.UnitTest/RulesEngine.UnitTest.csproj @@ -9,7 +9,8 @@ - + + all