Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
0 answers
47 views

Using the same DbCompiledModel to create contexts..." with Entity Framework

I have a C# project running from about 8 years without problems. Using .net 4.8 c# entity framework 6 MySql and SqLite. This year I would like to upgrade mysql db drivers from version 8 to 9. After ...
Luca Simone Bernardini's user avatar
1 vote
0 answers
51 views

EntityFramework / MySQL Nullpointer Exception while generating query

We are using MySQL.Data.EntityFramework 8.0.20 and are currently facing a wild issue: In a regular base query, we are doing something like this: query = query.Include("Table1").Include("...
dognose's user avatar
  • 20.9k
0 votes
0 answers
68 views

Connect Timeout expired. Unable to connect to any of the specified MySQL hosts

I'm trying to deploy my api inside a docker container. It was working perfectly but I changed the mysql server parameters and it started giving me the following problem. Does anyone have any idea what ...
Raudel Chavez Arroyo's user avatar
1 vote
1 answer
433 views

MySql error, The given key was not present in the dictionary

I am getting the below exception while connecting to the database server. Exception: An error occurred while executing the command definition. See the inner exception for details. StackTrace: at ...
Akshay Verma's user avatar
0 votes
1 answer
68 views

DotNet Minimal API Refuses to connect to MySql instance

I have set up the following Program.cs: using Api.Models; using Microsoft.EntityFrameworkCore; var builder = WebApplication.CreateBuilder(args); // Add services to the container. // Learn more about ...
Catradora's user avatar
  • 424
-1 votes
2 answers
83 views

In the Entity Framework, how to change by code the database connection string

I need to change my code because I have the connection string in the web.config. I am calling from a project. I don't want to use app.config. I need to make centralized in web.config. How can I change ...
Dave's user avatar
  • 7,379
0 votes
0 answers
78 views

MySqlConnection and EntityFramework shared connection

I have two ways to connect to mysql db 1. using MySqlConnection 2. using EntityFramework they both implment IDbConnection inside I need to share connection between them since i want to use both in ...
kosnkov's user avatar
  • 5,947
3 votes
1 answer
2k views

MySql.Data.MySqlClient.MySqlProviderServices.GetDbProviderManifestToken to access method MySql.Data.MySqlClient.MySqlConnection.get_Settings() failed

To Upgrade Database: MySql Version 5.5.62 to 8.0.28 .NET Framework: Version 4.5 to 4.8 Entity Framework: Version 5.0.0 to 6.4.4 I followed the steps: Uninstall and remove all existing mySQL dll ...
Lukman Hakim Imran's user avatar
0 votes
1 answer
303 views

Connecting MySql With Entity Framework c#

I have a stable program working with local SQL Server, However the client requires online access (with low budget) to the database. So I decided to migrate to MySQL (if you have any suggestion with ...
SHADOW.NET's user avatar
0 votes
0 answers
713 views

What is the app.config equivalent for .NET Core/5.0

I am trying to port code from a .NET Framework project to .NET Core/5.0, specifically my problem here is getting my custom MySQL authentication plugin working. For .NET Framework, instructing the ...
Alfie's user avatar
  • 2,350
1 vote
1 answer
47 views

Foreign Key Issue?

In my HomeController, I am having trouble with my create function accessing the database. After submitting the form in my browser, this is the error that shows: Error Given MySqlException: Cannot add ...
Blackwell805's user avatar
1 vote
1 answer
958 views

Table 'dbname.dbname.tablename' doesn't exists error in Visual Studio when adding Mysql Entity Framework

I am trying to add MySQL with Entity Framework in Visual Studio. I am using MySQL Server 8.0.12 and also the 8.0.12 Connector/MySql.data. error: MysqlException: Table 'dbname.dbname.tablename' doesn't ...
hanifedev's user avatar
1 vote
1 answer
115 views

httppost data used for database queries

I have two fields of string data from an asp MVC entity framework view. Through model binding, I now have this data back in the httppost action function. I would now like to use this data to pass to a ...
NRB's user avatar
  • 105
16 votes
3 answers
48k views

asp.net core: "Operations that change non-concurrent collections must have exclusive access."

My server uses MySqlConnector and communicates with a MySQL database on AWS. I store 5 minute chunks of API counters in MySQL. Those API counters are incrementing with each API call, and are handled ...
Giawa's user avatar
  • 1,381
4 votes
3 answers
8k views

Connect Entity Framework with MYSQL in VS2019

I just installed Visual Studio 2019 and I´m trying to add a database with an ADO.NET entity model, but the wizard crashes in this step... Select Entity Framework Version I have Visual Studio ...
valeria's user avatar
  • 111

15 30 50 per page