greyfox
greyfox
CC#
Created by Moonlit on 11/16/2024 in #help
✅ Local Post, 400 Bad Request. Can't figure out why?
yeah that works
41 replies
CC#
Created by Moonlit on 11/16/2024 in #help
✅ Local Post, 400 Bad Request. Can't figure out why?
virtual in this case is for entity framework to enable lazy loading and change tracking: https://learn.microsoft.com/en-us/previous-versions/dotnet/netframework-4.0/dd468057(v=vs.100)
41 replies
CC#
Created by Moonlit on 11/16/2024 in #help
✅ Local Post, 400 Bad Request. Can't figure out why?
it's a similar principle to using viewmodels - expose only what is needed, and nothing more.
41 replies
CC#
Created by Moonlit on 11/16/2024 in #help
✅ Local Post, 400 Bad Request. Can't figure out why?
yup
41 replies
CC#
Created by Moonlit on 11/16/2024 in #help
✅ Local Post, 400 Bad Request. Can't figure out why?
It's a class that only has the properties to contains the data that you want passed around your application
41 replies
CC#
Created by Moonlit on 11/16/2024 in #help
✅ Local Post, 400 Bad Request. Can't figure out why?
data transfer object
41 replies
CC#
Created by Moonlit on 11/16/2024 in #help
✅ Local Post, 400 Bad Request. Can't figure out why?
And then either build the mapping between your DTO and your Command class manually or use something like Automapper.
41 replies
CC#
Created by Moonlit on 11/16/2024 in #help
✅ Local Post, 400 Bad Request. Can't figure out why?
You may want to use a DTO class instead of something that exposes all your internal workings.
41 replies
CC#
Created by Moonlit on 11/16/2024 in #help
✅ Local Post, 400 Bad Request. Can't figure out why?
As a sanity test, simplify your model to remove annotations and the virtual properties.
41 replies
CC#
Created by Moonlit on 11/16/2024 in #help
✅ Local Post, 400 Bad Request. Can't figure out why?
try it and see what happens
41 replies
CC#
Created by Joshman1412 on 11/16/2024 in #help
✅ Does anyone know how to fix the error below
add it as a reference to your project
176 replies
CC#
Created by Joshman1412 on 11/16/2024 in #help
✅ Does anyone know how to fix the error below
oh dude don't use separate solutions...
176 replies
CC#
Created by moi15moi on 11/16/2024 in #help
✅ [Nuget] How to find the latest version of a package?
No description
22 replies
CC#
Created by Joshman1412 on 11/16/2024 in #help
✅ Does anyone know how to fix the error below
is this a compiler error or runtime?
176 replies
CC#
Created by Joshman1412 on 11/16/2024 in #help
✅ Does anyone know how to fix the error below
No description
176 replies