Difference between .NET Framework for Entity Framework

10

I have an Asp.Net MVC project that when clicking properties the following information is displayed:

WhenIopenedthefilepackages.configIcouldseethisotherinformation:

After all, what exactly is the Target framework ? What is your function? Can changing it cause application or server problems? What are the disadvantages of being outdated?

What is the relationship between the Entity Framework and the Target framework ? What is the dependency between them? Can one update affect the other? Can I use a newer version of EF in an application with the old Framework?

    
asked by anonymous 01.06.2016 / 20:45

2 answers

8
  

After all, what exactly is the Target framework ?

This is the .NET framework version for the entire project. More recent versions have more features, more functionality, and the specification of languages, such as C #, becomes more advanced.

  

What is your role?

The framework is the set of tools implemented by Microsoft. Basically, all non-primitive classes are part of it.

  

Can this change cause application or server problems?

It depends. Changing to an older version may cause problems. Change to a new version, hardly with rare exceptions, but whose exceptions are properly documented on the Internet.

  

What are the disadvantages of being outdated?

Several, I would say. New features come out with some constancy. Asynchronous programming, for example, does not exist natively in version 4 of .NET. It needs to be added as an extra package. Newer versions tend to be better at performance and data security.

  

What is the relationship between the Entity Framework and the Target framework? What is the dependency between them?

The Entity Framework is dependent on the version of .NET you are using. Version 6, for example, depends on the framework 4.5 to work.

  

Can one update affect the other?

It can.

Upgrading .NET to a newer version does not affect the Entity Framework. For an older version, it may affect.

Updating the Entity Framework may in some cases create a .NET incompatibility, but this only happens if the .NET version is too old.

  

Can I use a newer version of EF in an application with the old Framework?

It also depends. Version 6 still supports .NET 4.0 . See this link for more information.

    
01.06.2016 / 21:59
7

Jedaias, with every Framework evolution, it brings new functionality, for example, 4.5 has introduced async and await and Entity Framework 6 makes use of them through Async Query & Save . So if you want to use asynchronous queries with EF , you will need to update the Framework , otherwise you can continue with the 4.0 version.

On the other hand, if% w /% w / w where your application will run supports a newer version of Framework , migrations from servidor or of máquina (or even 2.0 -> 3.5 ), after all Framework evolved incrementally and remained backwards compatible.

On the other hand, 4.0 -> 4.5 has been restructured from 4.6.1 to Entity Framework , there has been a change of some EF4 , so you will have to make some manual adjustments to your EF5 , as well as in its Namespaces . If you upgrade using using , most of these adaptations will be done automatically.

    
01.06.2016 / 21:33