DarkVader
DarkVader
CC#
Created by Yasir on 6/8/2023 in #help
❔ RoadMap.. !
Ideally you want to do some project on which you will learn, every time you don't know what to, or you don't fully understand you go and invest time to learn that thing. Good roadmap for what to learn imo is Nick Chapsas backend developer roadmap, it is on his GitHub
6 replies
CC#
Created by electronic heartbreak. on 6/7/2023 in #help
❔ Get property from type
GetRegularTypes function or method, whatever you like to call it. Good morning then
13 replies
CC#
Created by electronic heartbreak. on 6/7/2023 in #help
❔ Get property from type
Why can't you make the method static?
13 replies
CC#
Created by electronic heartbreak. on 6/7/2023 in #help
❔ Get property from type
Try this var nameProperty = type .GetProperties() .First(x => x.Name == "Name"); You can get the value from that easily Sorry for the formatting I'm on my phone
13 replies
CC#
Created by DarkVader on 6/4/2023 in #help
✅ .Where in Include stetment not returning correctly
So i was dumb and i designed data incorrectly, my bad, now I fixed an error, Ill close this
9 replies
CC#
Created by DarkVader on 6/4/2023 in #help
✅ .Where in Include stetment not returning correctly
You can in versions above 5 I think, and that tracks entities unlike using Select, from what I read, but somehow I can't make it work on nested properties, I've been trying for 6 hours straight to make it work and I just can't so I decided to ask people here for help
9 replies
CC#
Created by DarkVader on 6/4/2023 in #help
✅ .Where in Include stetment not returning correctly
So I need to use select? That way I am losing tracking for comments properties
9 replies
CC#
Created by DarkVader on 6/3/2023 in #help
✅ Remove many to many with select
I love you, I've been going at this for 7 hours trying to find a way and i created such a complex solution, but this is so easy and elegant, thank you so so so so much
5 replies
CC#
Created by DarkVader on 6/3/2023 in #help
✅ Remove many to many with select
Im using Ef Core 7, wow I didnt know that was a feature, thank you so so so so so much, this is what I needed
5 replies
CC#
Created by DarkVader on 6/3/2023 in #help
ClaimsPrincipal, httpContext.User is not filled when I send the token, but endpoint is AllowAnonymos
Thank you so much
6 replies
CC#
Created by DarkVader on 6/3/2023 in #help
ClaimsPrincipal, httpContext.User is not filled when I send the token, but endpoint is AllowAnonymos
Ok I understand that, but this needs to be anonymous endpoint, but if someone sends a token i want to treat it differently for authenticated user, can I place middleware or something to place claims from token to claim or no?
6 replies