Skip to content

nils-kt/MySQLTD2CSC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

MySQLTD2CSC

MySQL Table Design to CSharp Class.


ATTENTION: This is only a small developer tool which should never be used in a productive environment!


How to use

Enter your MySQL data in config.json.
Start the converter as follows: node index.js TABLENAME

Result:

public class Shops {
    public int Id {get; set;}
    public double PosX {get; set;}
    public double PosY {get; set;}
    public double PosZ {get; set;}
    public double Heading {get; set;}
    public string Type {get; set;}
    public int InStock {get; set;}
    public int CreateBlip {get; set;}
}

Example

Example gif

Why?

A small tool was needed which makes it easier to create the required classes for the Entity Framework using C#.

Sharing is caring. :)
Feel free to improve the code further if you feel like it.