Closed yukozh closed 7 years ago
@Kagamine can you put the "How to use MyCat with .NET Framework or .NET Core" info included in this issue somewhere on your project site so that we can link to it (perhaps in the README for your repo?).
PR submitted for this provider https://github.com/aspnet/EntityFramework.Docs/pull/261
/cc @rowanmiller @divega
What is MyCat?
MyCAT is an Open-Source software, a large database cluster oriented to enterprises. MyCAT is an enforced database which is a replacement for MySQL and supports transaction and ACID. Regarded as MySQL cluster of enterprise database, MyCAT can take the place of expensive Oracle cluster. MyCAT is also a new type of database, which seems like a SQL Server integrated with the memory cache technology, NoSQL technology and HDFS big data. And as a new modern enterprise database product, MyCAT is combined with the traditional database and new distributed data warehouse. In a word, MyCAT is a fresh new middleware of database.
The target of MyCAT is to smoothly migrate the current stand-alone database and applications to cloud side with low cost and to solve the bottleneck problem caused by the rapid growth of data storage and business scale.
Why use MyCat?
How to use MyCat with .NET Framework or .NET Core?
① Install Java8, MySQL 5.7, .NET Core SDK on your server
② Download Pomelo.EntityFrameworkCore.MyCat.Proxy and MyCat Server
③ Configure the
config.json
which in Pomelo.EntityFrameworkCore.MyCat.Proxy root path, set theMyCatRootPath
.④ Start the proxy by execute
nohup dotnet Pomelo.EntityFrameworkCore.MyCat.Proxy.dll
⑤ Create .NET project. Add
Pomelo.EntityFrameworkCore.MyCat
into your project.⑥ Configure your DbContext, declare the distributed mysql node address.
⑦ Create models and using the
dotnet ef migrations add Init
anddotnet ef database update
to init your database.⑧ Most of functions which provided in Entity Framework Core were supported. You are able to use .Where(), .Count(), .Sum() ... with
Pomelo.EntityFrameworkCore.MyCat
.View the sample on YouTube