Open
Description
Currently string and binary parameters are added without a length meaning you get multiple queries and plans causing bloat and is impossible to manage from a query store plan perspective as one, you end up with 100s of queries with the same hash, but are different queries and also differing plans. Query is just varying by the length of the definition of the parameter. (See below)
The DBConnectionParam needs a length and the creation of params should use length where possible.
This could obtain the length of the underlying model as it does to get the type of the underlying model column