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
Post a Comment