Difference between . NET Framework for Entity Framework

Asked

Viewed 367 times

10

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

inserir a descrição da imagem aqui

When opening the file packages.config I could see that other information:

inserir a descrição da imagem aqui

After all, what exactly would Target framework? What is your function? Changing it can cause problems in the application or server? 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? Updating one can affect the other? Can I use a newer version of EF in an application with the old Framework?

2 answers

8


After all, what exactly would Target framework?

Is the version of framework .NET for the entire project. Newer versions have more features, more features, and language specification, such as C#, becomes more advanced.

What is your function?

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

Changing it may cause problems in the application or server?

It depends. Changing to an old version can cause problems. Change to a new version, hardly, except for 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. NET version you are using. Version 6, for example, depends on the framework 4.5 for operation.

Updating one can affect the other?

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 an incompatibility with the . NET, 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?

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

7

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

On the other hand, if the servidor/máquina where your application will run supports a newer version of Framework, should be relatively quiet to make migrations from 2.0 -> 3.5 or of 4.0 -> 4.5 (or even for the 4.6.1), after all the Framework evolved incrementally and maintained compatibility with previous versions.

On the other hand, the Entity Framework has undergone a restructuring of EF4 to the EF5, there was the change of some Namespaces, then you will need to make some manual adjustments to your using, just as in your web.config. If you upgrade using NuGet, most of these adaptations will be done automatically.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.