SwaggerLife
Reading config files (mostly secrets) from outside appsettings and env vars - bad idea?
There are certain services such as managed identity which
azure
provides. Basically, you specify which of your other app services can access certain resources such as the vault
. The only thing you show in the appsettings.json
is the vault-url
and azure will automatically check if a certain resource has the correct authorization requirements to access the vault
.7 replies
Query improvement suggestions
@viceroypenguin | 🦋🐧🌟 Thanks for the insight. Any reasons as to why I'm getting this warning by rider
Function is not convertible to SQL and must not be called in the database context
. I got this, when I switched the query with the suggested one. I actually like yours better, there is no need for 2 queries.3 replies
Naming conventions with Dto
Having the ID in your DTO's is always a good idea. I usually only have 1 DTO for each of my entities. I make all the properties nullable and tell the controllers to ignore null properties. So any property that have a null value, won't be included.
52 replies