SqlParameter provided for every provider
Opened this issue · 0 comments
zabulus commented
I develop custom IQueryProvider for Firebird .NET. I've added all implementation I'd needed for Update queries.
After running queries, exception System.InvalidCastException : The parameter passed was not a FbParameter.
from FB.NET occured. The issue cause is here:
The library provides SqlParameter, no matter what provider is running now.
My suggestion is to add
DbParameter
factory to IQueryProvider
interface.I can provide PR for my suggestion if it is acceptable.