Skip to content

Unsupported usage with Microsoft.Data.SqlClient #19

@Arma-Branca

Description

@Arma-Branca

Hello,
After moving my providers from System.Data.SqlClient to Microsoft.Data.SqlClient.
The QueryableValuesCommandInterceptor.TransformCommand is throwing the following error:

QueryableValues only works with a SQL Server provider.

This seems somehow related to the correction done here #15
To support the Microsoft.Data.SqlClient seems simple, change the System.Data.SqlClient usage to just use the DbParameter/DbType instead of the cast to SqlParamter/SqlDataType

Thanks @yv989c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions