PomeloFoundation/Pomelo.Data.MySql


Contains MySQL implementations of the System.Data.Common(Both .NET Core and .NET Framework) interfaces.

Host: GitHub

License: MIT

Language: C#


Pomelo.Data.MySql

Build status Build status

Contains MySQL implementations of the System.Data.Common(Both .NET Core and .NET Framework) interfaces.

You can access this library by using MyGet Feed: https://www.myget.org/F/pomelo/api/v2/

Getting Started

After adding myget feed, you can put Pomelo.Data.MySql into your project.json, and the version should be 1.0.0.

MySqlConnection, MySqlCommand and etc are 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.

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

Project Statistics

Sourcerank 7
Repository Size 332 KB
Stars 29
Forks 7
Watchers 9
Open issues 3
Dependencies 0
Contributors 1
Tags 0
Created
Last updated
Last pushed

Top Contributors See all

Yuko Zheng

Packages Referencing this Repo

Pomelo.Data.MySql
Pomelo.Data.MySql
Latest release 1.0.0 - Updated - 29 stars

Interesting Forks See all

TiriSane/Pomelo.Data.MySql
This repository is no longer available - 1 stars

Something wrong with this page? Make a suggestion

Last synced: 2016-07-12 05:44:34 UTC

Login to resync this repository