SwaggerLife
SwaggerLife
CC#
Created by prodijay on 6/21/2024 in #help
Unable to get logged in user with GetUserAsync
You are right, my bad.
39 replies
CC#
Created by prodijay on 6/21/2024 in #help
Unable to get logged in user with GetUserAsync
You could store a name identifier.
39 replies
CC#
Created by prodijay on 6/21/2024 in #help
Unable to get logged in user with GetUserAsync
Are you using JsonWebTokens?
39 replies
CC#
Created by noah on 5/30/2024 in #help
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
CC#
Created by noah on 5/30/2024 in #help
Reading config files (mostly secrets) from outside appsettings and env vars - bad idea?
@noah use some sort of vault.
7 replies
CC#
Created by SwaggerLife on 5/19/2024 in #help
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
CC#
Created by Julian on 5/16/2024 in #help
DotNet Core 8: JWT authorization problem
@Julian How are you passing in the header?
3 replies
CC#
Created by Billy on 4/5/2024 in #help
Naming conventions with Dto
I have actually had this issue before. By telling it to ignore cycles it only keeps 1 object. Instead of having for instance Doctor -> [Appointment(Doctor -> [Appointment])]
52 replies
CC#
Created by Billy on 4/5/2024 in #help
Naming conventions with Dto
I'm curious, ignoring cycles, is it a bad idea?
52 replies
CC#
Created by Billy on 4/5/2024 in #help
Naming conventions with Dto
One solution would be to tell the JsonSerializer to IgnoreCycles.
52 replies
CC#
Created by Billy on 4/5/2024 in #help
Naming conventions with Dto
That's true. I haven't really thought of that.
52 replies
CC#
Created by Billy on 4/5/2024 in #help
Naming conventions with Dto
I'm the only developer. So it makes since to me.
52 replies
CC#
Created by Billy on 4/5/2024 in #help
Naming conventions with Dto
It makes life simplier.
52 replies
CC#
Created by Billy on 4/5/2024 in #help
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
CC#
Created by Yawnder on 4/5/2024 in #help
DI: Registration of services through a builder.
Are you looking for a way to register you services separately?
8 replies
CC#
Created by Yawnder on 4/5/2024 in #help
DI: Registration of services through a builder.
Based on this builder.AddSubFeature() maybe an extension would help.
8 replies
CC#
Created by Yawnder on 4/5/2024 in #help
DI: Registration of services through a builder.
My bad, perhaps I misunderstood.
8 replies
CC#
Created by only you know on 3/31/2024 in #help
practicing on mutliple databases
A user can have many carts and a cart can hold many items.
12 replies
CC#
Created by SwaggerLife on 3/31/2024 in #help
DeleteBehavior?
For instance here
builder.HasOne(e => e.Organization)
.WithMany(e => e.Members)
.OnDelete(DeleteBehavior.Cascade);
builder.HasOne(e => e.Organization)
.WithMany(e => e.Members)
.OnDelete(DeleteBehavior.Cascade);
how do I know which entity is going to get effected. What I mean is that, let's say an organization is deleted, will all the members be deleted. Or does this mean, if a member is deleted, the organization will be deleted?
3 replies
CC#
Created by SwaggerLife on 3/29/2024 in #help
Project structure
Well well that sucks, It would have been really nice. If it was possible.
17 replies