How to fix type names conflicts in Dynamic Data

Posted by SDReyes on Stack Overflow See other posts from Stack Overflow or by SDReyes
Published on 2010-03-30T20:24:37Z Indexed on 2010/03/31 3:53 UTC
Read the original article Hit count: 792

Hi Guys!

We're working in a Dynamic Data project that will handle entities coming from two different namespaces: myModel.Abby and myModel.Ben.

whose classes are:


Abby

myModel.Abby.Car

myModel.Abby.Lollipop

Ben

myModel.Ben.Car

myModel.Ben.Apple

So myModel.Abby.Car and myModel.Ben.Car are homonym. when I try to register both ObjectContext's, an exception is thrown telling us that there are type name conflicts between the mentioned classes (although the types belong to different namespaces).

How can we overcome type-name conflicts, caused by repeated type names among different namespaces?

© Stack Overflow or respective owner

Related posts about dynamic-data

Related posts about entity-framework