Search the Community
Showing results for tags 'entityframeworkcore'.
Found 1 result
-
Hello everyone! I've got some errors with references to assemblies, but I've managed to solve the most of them except one with Entity Framework Core. So, the problem is: CS0234: The type or namespace name 'EntityFrameworkCore' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) I added the Microsoft.EntityFrameworkCore.dll reference to my resource, and then restarted the server. I got bunch of this error: The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. If I keep this reference, then I get just these errors, nothing else. So I decided to delete this reference, and add MySql.Data.EntityFrameworkCore.dll and Microsoft.EntityFrameworkCore.Relational.dll. The results are the following: CS0246: The type or namespace name 'DbContext' could not be found (are you missing a using directive or an assembly reference?) CS0246: The type or namespace name 'DbContextOptionsBuilder' could not be found (are you missing a using directive or an assembly reference?) CS0246: The type or namespace name 'DbSet<>' could not be found (are you missing a using directive or an assembly reference?) CS0012: The type 'DbContextOptionsBuilder' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.EntityFrameworkCore, Version=2.0.1.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. I don't know what should I do now. I've never used .NET Core, so if anyone could help me a bit, it would be awasome. Thanks, manaszon!
