c# - POCO and non-POCO in the same class library project -


in 1 of projects have models don't want use poco i.e. use ef generated classes , others want use pocos. when mix those, poco mapping doesn't work , exception

system.invalidoperationexception unhandled user code message=mapping , metadata information not found entitytype 'xxxxx.xxxxx.xxxxx.xxxxx'. source=system.data.entity

this message incorrect in connection string. however, after through inspection confirm there nothing wrong or generated poco classes. found that

mapping poco entities not supported if mapping attributes applied custom data classes, including edmschemaattribute @ assembly level.

in msdn article working poco entities. while simplest solution split project 2 parts , keep poco , non-poco separately, wanted see if there way around.

looks there isn't way this.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -