Skip to content

Convert MySQL tables to C# classes and optionally generate a reading constructor and sql statement output

License

Notifications You must be signed in to change notification settings

Kaev/MySQL-To-CSharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySQL-To-CSharp

This tool generates C# classes and markup pages for entire MySQL databases (including tables).

Hint

This is an old project which i quickly hacked together. It works fine (it doesn't respect nullables though) but the code is very messy. If you're working on something similar, i'm more than happy to archive this and add a link to your project to this readme.

How to use

Run the program with the following arguments

Parameter Default value Description
-i 127.0.0.1 (optional) IP address of the MySQL server, will use 127.0.0.1 if not specified
-n 3306 (optional) Port number of the MySQL server, will use 3306 if not specified
-u root (optional) Username, will use root if not specified
-p (optional) Password, will use empty password if not specified
-d Database name
-t (optional) Table name, will generate entire database if not specified
-g (optional) Generate a reading constructor and SQL statement output - Activate with -g true
-m (optional) Generate markup pages for database and tables which can be used in wikis - Activate with -m true
-r (optional) Will use this instead of database name for wiki breadcrump generation

About

Convert MySQL tables to C# classes and optionally generate a reading constructor and sql statement output

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages