# Pomelo.Data.MySql **Repository Path**: windwl/Pomelo.Data.MySql ## Basic Information - **Project Name**: Pomelo.Data.MySql - **Description**: Pomelo.Data.MySql .net core 2.0 - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-10-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Pomelo.Data.MySql [![Travis build status](https://img.shields.io/travis/PomeloFoundation/Pomelo.Data.MySql.svg?label=travis-ci&branch=master&style=flat-square)](https://travis-ci.org/PomeloFoundation/Pomelo.Data.MySql) [![AppVeyor build status](https://img.shields.io/appveyor/ci/Kagamine/Pomelo-Data-MySql/master.svg?label=appveyor&style=flat-square)](https://ci.appveyor.com/project/Kagamine/pomelo-data-mysql/branch/master) [![NuGet](https://img.shields.io/nuget/v/Pomelo.Data.MySql.svg?style=flat-square&label=nuget)](https://www.nuget.org/packages/Pomelo.Data.MySql/) [![MyGet](https://img.shields.io/myget/pomelo/vpre/Pomelo.Data.MySql.svg?style=flat-square&label=myget)](https://www.myget.org/Package/Details/pomelo?packageType=nuget&packageId=Pomelo.Data.MySql) [![Join the chat at https://gitter.im/PomeloFoundation/Home](https://badges.gitter.im/PomeloFoundation/Home.svg)](https://gitter.im/PomeloFoundation/Home?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) Contains MySQL implementations of the System.Data.Common(Both .NET Core and .NET Framework) interfaces. ## Nightly Builds To add a `NuGet.config` file in your solution root, then you can use the unstable packages: ```xml ``` ## Getting Started To add the `Pomelo.Data.MySql` into your `project.json`: ```json { "version": "1.0.0-*", "buildOptions": { "emitEntryPoint": true }, "dependencies": { "Microsoft.NETCore.App": { "type": "platform", "version": "1.0.0" }, "Pomelo.Data.MySql": "1.0.0-prerelease-20160726" }, "frameworks": { "netcoreapp1.0": { "imports": "dnxcore50" } } } ``` `MySqlConnection`, `MySqlCommand` and etc were included in the namespace `Pomelo.Data.MySql`. The following console application sample will show you how to use this library to write a record into MySQL database. ```C# using Pomelo.Data.MySql; namespace MySqlAdoSample { public class Program { public static void Main(string[] args) { using (var conn = new MySqlConnection("server=localhost;database=adosample;uid=root;pwd=yourpwd")) { conn.Open(); using (var cmd = new MySqlCommand("INSERT INTO `test` (`content`) VALUES ('Hello MySQL')", conn)) { cmd.ExecuteNonQuery(); } } } } } ``` ## Contribute One of the easiest ways to contribute is to participate in discussions and discuss issues. You can also contribute by submitting pull requests with code changes. ## License [MIT](https://github.com/PomeloFoundation/Pomelo.Data.MySql/blob/master/LICENSE)