entity framework - Problems with EF version after move project -


after move project vs2010 ef 4 vs 2012 ef5 , appear on project problems dataannotations on models

[foreignkey("striddocumento")]  can't find type or space name 'foreignkey' [lost using directive or assembly reference] 

i remove reference ef 4, add ef5 using nugget. problem persists

note: project mvc c# , asp.

likely missing using statement.

using system.componentmodel.dataannotations.schema; 

you may want using fluent api instead of data annotations, thought.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -