asp.net core with EF and MySQL : extension method not found
Posted by: Cédric Chatelain
Date: April 28, 2017 01:33PM

Hello,

I want to use mysql with EF on asp.net core but when i do :

services.AddDbContext<ContentContext>(opt => opt.UseMySQL());

VisualStudio tells me DbContextOptionBuilder doesn't have an extension method UseMySQL

I have installed the connector using NuGet command:

Install-Package MySql.Data.EntityFrameworkCore -Pre

What am'I missing ?

Options: ReplyQuote


Subject
Written By
Posted
asp.net core with EF and MySQL : extension method not found
April 28, 2017 01:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.