We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6315454 commit 2b285b9Copy full SHA for 2b285b9
Orm/Xtensive.Orm/Orm/Services/QueryFormatter.cs
@@ -69,7 +69,10 @@ public DbCommand ToDbCommand<T>(IQueryable<T> query)
69
70
private CommandPart GetCommandPart<T>(IQueryable<T> query)
71
{
72
- var translatedQuery = Session.Query.Provider.Translate(query.Expression);
+ var compilerConfiguration = Session.CompilationService.CreateConfiguration(Session);
73
+ compilerConfiguration.PreferTypeIdAsParameter = false;
74
+
75
+ var translatedQuery = Session.Query.Provider.Translate(query.Expression, compilerConfiguration);
76
var sqlProvider = translatedQuery.DataSource as SqlProvider;
77
78
if (sqlProvider==null)
0 commit comments