I am experiencing an issue with EF4 and Proxy Pocos.
I have 2 classes with the same name in the same assembly but different namespaces:
QuoteModels.CashPayment
OrderModels.CashPayment
This compiles fine but at runtime EF throws the following exception:
Schema specified is not valid. Errors: \r\nThe mapping of CLR type to EDM type is ambiguous because multiple CLR types match the EDM type 'CashPayment'. Previously found CLR type 'QuoteModels.CashPayment', newly found CLR type 'OrderModels.CashPayment'
Is there a workaround to have classes with the same name in the same assembly with different namespaces to work with Ef4?
Do I have to give them different names or move them into another assembly?