Tag Archives: mysql

MySQL and C# Entity Framework “ProviderIncompatibleException”

Questions: i’m following the MySql tutorial to entity framework as listed here: https://dev.mysql.com/doc/connector-net/en/connector-net-entityframework60.html I have installed in my project via NuGet: – Entity Framework v6.2.0 – MySql.Data.Entity v6.10.7 And their corresponding dependencies. I have installed the MySql CONNECTOR/NET v8.0.11. I added the provider and connectionString to the App.config: <entityFramework codeConfigurationType=”MySql.Data.Entity.MySqlEFConfiguration, MySql.Data.Entity.EF6″> <defaultConnectionFactory type=”System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework” />… Read More »

Is using ServiceDescriptor an acceptable way to set up a MySQL database connection?

Questions: I’m programming an ASP.NET Core Rest API. For this I have used this line of code to establish the database connection. services.Add(new ServiceDescriptor(typeof(BookDBContext), new BookDBContext(Configuration[“ConnectionStrings:DefaultConnection”]))); //Get connection string from AppSettings. I do not use Entity Framework. Is this an acceptable way security wise to create a database connection? public class BookDBContext : IDisposable {… Read More »

Error in while Php Mysql Android [duplicate]

Questions: This question already has an answer here: PHP: “Notice: Undefined variable”, “Notice: Undefined index”, and “Notice: Undefined offset” 26 answers mysql_fetch_array()/mysql_fetch_assoc()/mysql_fetch_row()/mysql_num_rows etc… expects parameter 1 to be resource 31 answers Answers:

C# export mysql database to excel file

Questions: Hi i created a pos software but i needed a function to export data to excel so i created a class to export and i get and error when i try to export the file so here is some of my code that i worked on. public void PrefrlivoExcel() { MySqlConnection connection = Connection.prevzemiKonekcija();… Read More »

I want to know why isn't sending data to the MySQL?

Questions: I want to send data to the database.My PHP Files are OK,because I had tested that with postman and it send data to the database.But when I used Android app for that it shouldn’t send data to the database.Here is my java method for the sending data.Reply me with the solution please. public void… Read More »