verdie-g / StoredProcedureEFCore

Entity Framework Core extension to execute stored procedures
MIT License
192 stars 44 forks source link

Passing null value to the AddParameter<T> method does not pass parameter to StoredProcedure. #9

Closed korifeich closed 6 years ago

korifeich commented 6 years ago

I've tried to pass null value as a value of the Stored Procedure parameter: spBuild.AddParam(param.Name, (long?)null);

As a result this parameter is not passed into the Stored Procedure. This issue was reproduced with SQLServer.

verdie-g commented 6 years ago

Thanks. I was aware of this problem but I didn't find a good solution.

I didn't know T was comparable to null.