Sparky
EF Core is throwing DbUpdateConcurrencyException, but only on the production database (MySQL)
I updated my deployment scripts to use the
dotnet ef migrations script
tool to generate an idempotent sql file to apply the migrations to prod, and it works now.3 replies
EF Core is throwing DbUpdateConcurrencyException, but only on the production database (MySQL)
Update: I used DataGrip's built in import/export tools to clone my local dev database to prod. It turns out that this tool is doing something funny, and doesn't replicate the DDL on the target exactly as it should be.
3 replies
Sqlite Entityframework
I would put all the directly user-related properties in the
User
model. If you'll have many options per user, or more complex data structures, you can serialize the UserOptions
class as json/xml in the database. But if you do this, keep in mind that you won't be able to easily query user options directly (e.g. select all users with EN language).2 replies