sonodan.
sonodan.
CC#
Created by sonodan. on 11/24/2022 in #help
✅ Authentication with Cookies
thank you both!
18 replies
CC#
Created by sonodan. on 11/24/2022 in #help
✅ Authentication with Cookies
ah it seems I was misunderstanding. I thought the fallback signin schema meant the type of schema, for instance cookie or JWT. I didn't realize it had to match one of the names of the schemas adding, i thought it meant the type
18 replies
CC#
Created by sonodan. on 11/24/2022 in #help
✅ Authentication with Cookies
18 replies
CC#
Created by sonodan. on 11/24/2022 in #help
✅ Authentication with Cookies
Hmmm no the ctx.User.Claims doesn't contain any claims. When I switch "local" for "cookie" in all places, it adds the claim
18 replies
CC#
Created by sonodan. on 11/24/2022 in #help
✅ Authentication with Cookies
Yep, a cookie called .AspNetCore.local
18 replies
CC#
Created by sonodan. on 10/25/2022 in #help
HttpGet API Endpoint Accepting Array Parameter
Thanks - I'll implement it with a body instead!
4 replies
CC#
Created by sonodan. on 10/18/2022 in #help
Structuring SQL database to accommodate models
I'm using Dapper on this project, though I am contemplating a switch to EF as since then I've read this is general used more widely. In the interim, I'm looking up an equivalent to navigation properties in Dapper. Do you have any recommended reading resources on the approach you mentioned?
6 replies
CC#
Created by sonodan. on 10/9/2022 in #help
Using SQL db to create object ID or application?
Thanks for the responses all. So when I insert a new record into the DB and it will create the ID, I need to read that ID back to memory so I can attached it to my object Id property. Is it ok to use the "output" SQL command when I use insert to return this value each time, or is there a better practice?
15 replies
CC#
Created by sonodan. on 10/3/2022 in #help
Http 400 Bad Request Response [Answered]
i replicated an eventmodel as a record as you did, without any properties that are custom classes, and it serializes and gives a 200 response -- so I figure this issue is somehow related to either me using a value type instead of reference, or the fact i've got classes that have custom properties? I will update my code in general to follow the practices you showed in yours
139 replies
CC#
Created by sonodan. on 10/3/2022 in #help
Http 400 Bad Request Response [Answered]
yeah and i tried instantiating it the same way you did locally, but it didnt change anything so i didnt push any changes to git
139 replies
CC#
Created by sonodan. on 10/3/2022 in #help
Http 400 Bad Request Response [Answered]
sorry 'PostAsJsonAsync'
139 replies
CC#
Created by sonodan. on 10/3/2022 in #help
Http 400 Bad Request Response [Answered]
I was using newtonsoft to originally serialize the object into JSON for the HttpClient transport - but then you explained that the point of 'PostAsAsync' is that is deserializes for you, so I removed that part of the code but forgot to remove packrefernece
139 replies
CC#
Created by sonodan. on 10/3/2022 in #help
Http 400 Bad Request Response [Answered]
are the 3 projs - i should have tidied that before sending you to repo sorry
139 replies
CC#
Created by sonodan. on 10/3/2022 in #help
Http 400 Bad Request Response [Answered]
MmaPredictions.Client MmaPredictions.Shared MmaPredictionsAPI
139 replies
CC#
Created by sonodan. on 10/3/2022 in #help
Http 400 Bad Request Response [Answered]
which uses controllers instead
139 replies
CC#
Created by sonodan. on 10/3/2022 in #help
Http 400 Bad Request Response [Answered]
im using MmaPredictionsAPI
139 replies
CC#
Created by sonodan. on 10/3/2022 in #help
Http 400 Bad Request Response [Answered]
ah shit I was supposed to remove minimalApi proj - i'm not actually using that i was playing with it
139 replies
CC#
Created by sonodan. on 10/3/2022 in #help
Http 400 Bad Request Response [Answered]
ok, will research what dapper recommends and check that. I think it's dynamic because it's used for parameters, which I guess can hold a variety of diff data?
139 replies
CC#
Created by sonodan. on 10/3/2022 in #help
Http 400 Bad Request Response [Answered]
It's only a practice personal proj so it's for learning
139 replies
CC#
Created by sonodan. on 10/3/2022 in #help
Http 400 Bad Request Response [Answered]
I want to learn best practices tbh - I can switch it to EF and not use stored procs if that's more common
139 replies