You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
byte can map to the database exactly the same as a byte[]
signed or unsigned small integers can fit in the nearest wider signed or unsigned integer
Allow providers to supply their own additional type mappings for types they don't support, e.g. if a database engine doesn't have native support for bool, it can decide to use a small integer representation
Allow specific well known scenarios that are commonly demanded, like mapping enum types to strings
Comparisons and sorting are equivalent as long as the conversion is a monotonic function (although reversed if it is decreasing)
For non order-preserving conversions, we may need to differentiate the scenarios in which we introduce sorting just to get the order of two or more results to be deterministic so we can zip them together, vs. explicit ordering requested by user, which we may need to evaluate on the client after the conversion is performed.
There is a continuum of scenarios that can be supported here:
charcan map to the database exactly as astringof size 1 (see Remove SqlServer TypeMapping for CLR type char #8656)bytecan map to the database exactly the same as abyte[]They all probably require extending the reach of the type mapper to be able to participate of the generation of: