Override how Guid.ToString for Sqlite is implemented in SQL #4296
Replies: 6 comments
-
Beta Was this translation helpful? Give feedback.
-
And also the SQLiteSqlOptimizer is sealed, so I need to copy the whole code |
Beta Was this translation helpful? Give feedback.
-
literals generation logic stored in mapping schema. You need to register your generation logic using |
Beta Was this translation helpful? Give feedback.
-
@MaceWindu but is this not the other direction, Guid to String? I need a string comparison of the stored guid in SQL. I will create a pull with my change, if its okay |
Beta Was this translation helpful? Give feedback.
-
I do not understand this logic. Why it is needed? Create your own extension method. |
Beta Was this translation helpful? Give feedback.
-
because in SQLSever for example a guid could be converted to a string, in sqlite it could not |
Beta Was this translation helpful? Give feedback.
-
Is there a way, so I could override, how ToString() of a guid will be converted to SQL?
In Sqlite I need it to generate SQL like this:
Beta Was this translation helpful? Give feedback.
All reactions