-
Does DbExtension support Mysql? I use it with mysql and got some issues when i update records using
I get query like:
except
Can you help me? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
The first parameter of the SET method is a format string. That means you have to do this: ...
.SET("field_name = {0}", value) If you are getting the field name from a variable then you can do this: ...
.SET(field_name + " = {0}", value) |
Beta Was this translation helpful? Give feedback.
-
Thanks for answer. It was my fail. In previous project I used it like
And now, when i start to use properties and attributes to autogenerate update and insert queries, I made this mistake. I should use
But it could be cool if you add one more method SET, which will receive property and value. |
Beta Was this translation helpful? Give feedback.
-
You can extend SqlBuilder using extension methods. My intention is to keep is simple and consistent. |
Beta Was this translation helpful? Give feedback.
The first parameter of the SET method is a format string. That means you have to do this:
If you are getting the field name from a variable then you can do this: