Enhancement: Explicit selection of the datatype for query parameters #1052
Labels
breaking-changes
A breaking changes (issue, request, enhancement, etc)
enhancement
New feature or request
fixed
The bug, issue, incident has been fixed.
priority
Top priority feature or things to do
todo
Things to be done in the future
Describe the enhancement
I would like to have better control over query parameters passed to execute against RAW SQL:
OR
OR by using implementation from ADO.NET
Reference: https://repodb.net/class/parameter
Reference to the dapper's solution: https://www.learndapper.com/parameters
Context
In the company that I'm working I can use only raw SQLs and I would like to have better control of the passed parameters to the query statement to be able to select datatype. As @mikependon mentioned in previous issue that I made (#1051), RepoDB is probably leveraging the default behavior of ADO.NET for RAW SQL. Because the tables in the database uses
VARCHAR
instead ofNVARCHAR
, I've got a problem with slow performance of the queries. Things that should take 5-7 seconds, take 40-50s just because of different datatype..I mitigate the problem by using:
BUT when there will be two parameters of same CLR .NET type with different datatypes in sql - I will be ..... up.
The text was updated successfully, but these errors were encountered: