Qu-nii-sama
Qu-nii-sama
CC#
Created by khauvannam on 1/9/2024 in #help
My HttpContext.User always return null
is that login method inside a controller or is it in a service layer?
6 replies
CC#
Created by Qu-nii-sama on 8/12/2023 in #help
❔ RefreshToken and Cookies
Alright so I did some digging apparantly , when setting the httpOnly its expected behavior not to see the refreshToken in the cookie in production. the refreshToken still get send with the sub request but my problem is that its seems like the browser is loosing that refreshToken after some time before the expirations time
3 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
" Should I remove the generic repository and create a specific repository for each database table even if I need repeat the code of a CRUD?" The answer is NO because you will end up violating DRY principle
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
I think we should stick to the topic 🙂
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
or as z porinted out
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
if you suddenly need to use a nosql db or the otherway around i guess , i havent implemented it myself
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
yes
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
One of the arguments that i think is valid is that if you want to use multiple ORM technologies
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
i need to find all my old sources to come up with answers
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
i was a bit too fast on the keys i was stuck on incl from previous post
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
aaah my bad 😄
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
because it returns iqueryable and a repository pattern should not return iqeryable
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
you need to have that BaseRepository otherwise you will end up writing the same code for all repositories
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
identitcal behavior across all entities
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
i see then yes
53 replies
CC#
Created by yered. on 2/3/2023 in #help
❔ is Generic Repository a bad implementation of Repository Pattern?
Im not sure i quite understand generic repos? is that just BaseRepository with generic methods
53 replies