Replies: 1 comment 3 replies
-
There's a couple options:
The |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, as described in the 11.0 Upgrade guide, the IgnoreMap attribute is removed. The suggestion is to replace it with a fluent API alternative or implement the attribute ourselves.
We use the IgnoreMap attribute to exclude child entities/navigation properties of (efcore) entities from the mapping. The reason is that we want to control how child entities are added/updated/removed. Example:
Since we can have multiple FooDto's which map to a Foo entity, it's too much work to replace the IgnoreMap with the fluent api. Also when our database model is changed, all navigation properties are ignored automatically with the IgnoreMap attribute (entity classes are generated automatically with the IgnoreMap attribute on navigation properties).
My question: is there no alternative than adding the IgnoreMap attribute in our code if we want de use similar functionality (= igore a destination member once for all mappings)?
Beta Was this translation helpful? Give feedback.
All reactions