System.Data.Entity.Core.ProviderIncompatibleException: 'An error occurred accessing the database. This usually means that the connection to the database failed. Check that the connection string is correct and that the appropriate DbContext constructor is being used to specify it or find it in the application's config file. See http://go.microsoft.com/fwlink/?LinkId=386386 for information on DbContext and connections. See the inner exception for details of the failure.'
<connectionStrings> <add name="PioneerDBContext" connectionString=" Server=localhost; Port=3306; DataBase=MYDB; username=root; password=;" providerName="MySql.Data.MySqlClient" /> </connectionStrings>
Imports System.Data.Entity Imports System.Collections.Generic Public Class PioneerDBContext Inherits DbContext Public Property Projects As DbSet(Of Project) Public Property Items As DbSet(Of Item) Public Property Suppliers As DbSet(Of Supplier) Public Property POs As DbSet(Of PO) Public Property Users As DbSet(Of User) Public Property Companyinfos As DbSet(Of Companyinfo) End Class
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)