Suppose that Entity Classes were generated and I wanted to expand an entity with additional fields (for example, auxiliary for calculations) that I don’t want to map.
I perform inheritance from an entity, create an instance that I fill with data.
Then I want to add an entry to the database in the Entity table and execute db.Entity.Add((Entity)ExtendedEntity)
and get an error
'Object mapping could not be found for Type with identity'
Tell me how to avoid mistakes or maybe there is a more correct way?