EF 4.3.1 since VS 2011

I need to know if it is possible to use the latest version of EF (4.3.1) with VS 2011 without having to install these CTP components as indicated.

I had these components installed, but I uninstalled them, and since then I can’t add a new edmx file to the target .net 4 project; he complains about the lack of a reference to System.Data.Entity.

Do I need to update VS 2011?

+5
source share
2 answers

After I uninstalled and reinstalled Visual Studio, I still could not get a red error, so I used the process monitor to register what Visual Studio was doing with System.Data.Entityas a path filter, it turned out that Visual Studio was reading from

C:\Windows\Microsoft.NET\assembly\GAC_MSIL\policy.4.0.system.data.entity v4.0_0.0.0.0__b77a5c561934e089\policy.4.0.system.data.entity.config

System.Data.Entity.dll v 4.2.0.0


, VS .

CTP .

+9

, .net 4, .net 4.5. vs, 4.3.1 , nuget, .net 4, , , .

, EF4.3.1 .net 4.5, .


Entity Framework 4.x .NET Framework 4.5

Entity Framework 4.1 - 4.3 System.ComponentModel.DataAnnotations EntityFramework. .NET 4.5 .NET Framework System.ComponentModel.DataAnnotations.Schema System.ComponentModel.DataAnnotations.dll. EF 4.x .NET 4.5 . .NET Framework , , .

EF 4.x .NET 4.5, EF 5. , . #, extern EntityFramework.dll(Http://msdn.microsoft.com/en-us/library/e59b22c5(v=VS.80).aspx). System.ComponentModel.DataAnnotations.dll .NET 4.5 First.

:

  • ComplexType
  • DatabaseGenerated
  • DatabaseGeneratedOption
  • ForeignKey
  • InverseProperty
  • MaxLength
  • MinLength
  • NotMapped
+1

All Articles