C# update using AutoMapper
Basically, im trying to convert a VehicleDTO, which has some properties, to my Vehicle model, which has a lot of more properties, so when i map it, the unmapped properties are null, and when its time to update it, that causes a couple of errors, like some values that cant be null, or just updates the object but clears the previous values and set them to null.
Entity Framework Linq Query OfType fails with InvalidCastException when called from testing assembly
I’m running a net8.0 aspnet server using entity framework. One table in my database is for “Users”, but it contains 2 different types via a discriminator “Buyer” and “Seller”. In the code, Buyer and Seller are both subclasses of User