𝐃𝐞𝐫𝐢𝐬𝐨𝐧
❔ [EF Core] Ignore properties from constructor of base class
Hey, I am currently trying to implement a new model in EF Core which looks like this:
In the current implementation, I only want to save the
LoggedIn
property to the database, because I don't need the other ones from the base class. They're just needed for the business logic in the code. So I tried to ignore them with the ModelBuilder
:
But I am still getting the error message:
That kinda makes sense to me. But I really need to find a way how just to ignore the properties from the base class, I don't want an additional database wrapper class or something. Is that possible?25 replies