How to using EF6 with ASP.Net Core platform?


Hi all, i need to using EF6 with ASP.Net Core with net452 framework only and Identity. But i can’t found any sample about it. So please help me :frowning:


Hi @raymondle,

You can use EF6 with ASP.NET Core but it means that you have to target the full .NET Framework. You can find out more information and see code samples from this tutorial on the official ASP.NET Core documentation website.

– Toni


As @tsolarin said, you should target to .Net Framework, otherwise you should use EF7 for .Net Core projects

.NET Foundation Website | Blog | Projects | Code of Conduct