abe545 / CodeOnlyStoredProcedures

A library for easily calling Stored Procedures in .NET using only code (no xml or gui).
MIT License
4 stars 3 forks source link

No way to pass empty TVP to stored procedure #73

Closed abe545 closed 8 years ago

abe545 commented 8 years ago

The fluent syntax requires the table to be non-null, and passing empty informs you that you should pass null. The dynamic syntax also reports that null should be passed (however, this will never work). The error is coming out of ADO.NET, so the library needs to check if the value is empty, and if so, pass null.