What's the EF version companion with .NET4.5, can I strait-forward to EF6? RRS feed

  • Question

  • We tried EF4.2 last year in part of our project, now we want to upgrade our project target to .NET4.5, but...

    when change the compile target to .NET4.5, the EF-concerned code compile failed...

    why, and should I now upgrade strait-forward to EF5 or EF6-alpha?

    can somebody tell me some experience?


    • Edited by GoldyWang Wednesday, November 28, 2012 12:58 PM
    Wednesday, November 28, 2012 12:44 PM


  • Hi,

    I suspect this is caused by a namespace change. See (under "What about the DomainClasses project ?") for details. Note also that EF5 is the EF version which comes out of the box with .NET 4.5.

    I strongly suggest to ALWAYS post the exact error message get. Else we have to guess about which issue you more likely ran into and could start in a wrong direction (for example here if you don't use dataannotations it could be something else etc... so just always please tell WHICH issue you have rather than to let others to guess)...

    Please always mark whatever response solved your issue so that the thread is properly marked as "Answered".

    Wednesday, November 28, 2012 1:24 PM