moritz
Dapper enum to snake_case string
Hi, I have an enum
ItemType
with values like FileCollection
. In the database a string is stored in snake_case form, eg. 'file_collection'
.
Dapper doesn't seem to map it automatically, even with DefaultTypeMap.MatchNamesWithUnderscores = true;
.
Anyone else had a problem like this before and can help?3 replies
❔ EF core large field slows the entire query down
I have some entities with some large json strings in them. The problem now is that they always get loaded, even if i don't use them. So my endpoint that is just supposed to return some basic information about like 50 objects now takes 300ms on average. Is there a way to mark a property as "not included with normal queries unless specifically requested"?
10 replies