Nicholas Petersen
Nicholas Petersen

Reputation: 9558

Deploy Entity Framework Core 2.0 alongside EF 6?

Is it possible to deploy / install Entity Framework Core 2.0 alongside traditional Entity Framework 6? Is it fully possible, or possible but with some hang-ups, or not possible? Is this documented somewhere? I think I've seen they said they designed it to be side-by-side, but I'm having a hard time fully confirming this. Thanks.

Upvotes: 2

Views: 322

Answers (1)

JRB
JRB

Reputation: 2131

The official documentation says the following:

It is possible to use EF Core and EF6 in the same application. EF Core and EF6 have the same type names that differ only by namespace, so this may complicate code that attempts to use both EF Core and EF6 in the same code file.

If you are porting an existing application that has multiple EF models, then you can selectively port some of them to EF Core, and continue using EF6 for the others.

This means of course that you can install both EF6 and EF Core in the same project. I have done this in a few simple cases myself and it was working ok.

Upvotes: 2

Related Questions