Closed raydenl closed 2 years ago
Hi @raydenl, hm, I'm new to IBM.DB2, so I might be incorrect, I think you may try to use another schema and table name for QueryModelClass using fluent API. Kind of this:
modelBuilder.Entity<QueryModelClass>().ToTable("betterName", "schema");
Also now you can rename used parameters with the following code:
MemoryJoiner.ParametersPrefix = "@better_prefix_";
We use DB2 at my place of work, I tried MemoryJoin but DB2 (or at least the version we use) uses underscores as conditional compilation directives, so the error displayed further down is thrown. Removing these from the front of the DynamicTableName string ("__gen_query_data" becomes "gen_query_data") seems to fix the issue! :)
My code doesn't hit param creation code using the "@__gen_qp" pattern, so can't tell if that would also be an issue. The QueryModelClass table and schema name also start with a double underscore, but that doesn't appear to cause a problem.