MikaelEliasson/EntityFramework.Utilities

SqlParameter provided for every provider

Opened this issue · 0 comments

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:

.Select(p => new SqlParameter { Value = p.Value, ParameterName = p.Name })

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.