How to fix name name conflicts in dynamic data

We are working on a Dynamic Data project that will process objects 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.Carand myModel.Ben.Carare homonyms. 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 name spaces).

How can we overcome type name conflicts caused by duplicate type names in different namespaces?

+3
2

MSDN

. , , TableNameAttribute .

, .:)

+1

, .

DynamicData . URL-, -. DD , ?

+1

Source: https://habr.com/ru/post/1739202/


All Articles