You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Object Parameters are generated for functions using the (string name, object value) constructor:
var exampleParam = new System.Data.Entity.Core.Objects.ObjectParameter("ExampleParam", exampleParamValue);
When an optional string parameter is null, this throws an exception in the constructor of ObjectParameter even though it is legal and neccesary to have a null value for this parameter.
This StackOverflow answer suggests using the alternative constructor, and setting the Value parameter after construction:
var exampleParam = new System.Data.Entity.Core.Objects.ObjectParameter("ExampleParam", typeof(string)) { Value = exampleParamValue }
Could this be incorporated into the generator?
The text was updated successfully, but these errors were encountered:
Object Parameters are generated for functions using the (string name, object value) constructor:
var exampleParam = new System.Data.Entity.Core.Objects.ObjectParameter("ExampleParam", exampleParamValue);
When an optional string parameter is null, this throws an exception in the constructor of ObjectParameter even though it is legal and neccesary to have a null value for this parameter.
This StackOverflow answer suggests using the alternative constructor, and setting the Value parameter after construction:
var exampleParam = new System.Data.Entity.Core.Objects.ObjectParameter("ExampleParam", typeof(string)) { Value = exampleParamValue }
Could this be incorporated into the generator?
The text was updated successfully, but these errors were encountered: