efcore icon indicating copy to clipboard operation
efcore copied to clipboard

Question: Can we configure EF to ignore inheritance?

Open Villason opened this issue 10 years ago • 2 comments

Hello,

Is it possible to ignore the base type and treat the inheriting classes as stand-alone? I want EF to ignore my base class completely and duplicate the properties if needed.

Cheers.

Villason avatar Apr 07 '16 04:04 Villason

You can ignore the base type with the Ignore() method. That should result in the behavior you want.

divega avatar Apr 08 '16 18:04 divega

Thanks that works!

Villason avatar Apr 09 '16 12:04 Villason