diff --git a/source/Databricks/source/SqlStatementExecution/Formats/Reflections.cs b/source/Databricks/source/SqlStatementExecution/Formats/Reflections.cs index 6b6f27485..ed7b24695 100644 --- a/source/Databricks/source/SqlStatementExecution/Formats/Reflections.cs +++ b/source/Databricks/source/SqlStatementExecution/Formats/Reflections.cs @@ -109,10 +109,7 @@ private static Func ValidateConstructorForType() /// Creates an instance of using the constructor /// /// is thrown if contains more then one constructor - public static Func CreateWithValues => - typeof(T).GetConstructors().Length > 1 ? - throw new InvalidOperationException("Only one constructor is supported.") : - BuildExpressionForObjectCreation(); + public static readonly Func CreateWithValues = BuildExpressionForObjectCreation(); /// /// Builds an expression that creates an instance of using the constructor