Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nils-kt/mysqltd2csc
MySQL Table Design to CSharp Class
https://github.com/nils-kt/mysqltd2csc
entity-framework mysql nodejs utility
Last synced: about 20 hours ago
JSON representation
MySQL Table Design to CSharp Class
- Host: GitHub
- URL: https://github.com/nils-kt/mysqltd2csc
- Owner: nils-kt
- License: mit
- Created: 2021-09-20T11:41:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T18:36:29.000Z (3 months ago)
- Last Synced: 2024-12-07T06:11:55.488Z (about 2 months ago)
- Topics: entity-framework, mysql, nodejs, utility
- Language: JavaScript
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MySQLTD2CSC
**MySQL Table Design to CSharp Class**---
> ⚠️ **ATTENTION:** This is a developer tool intended only for testing and should **never** be used in a production environment!
---
## Usage
1. Enter your MySQL data in `config.json`.
2. Run the converter with the following command:
```bash
node index.js TABLE_NAME
```**Example output:**
`node index.js shops`
```csharp
[Table("shops")]
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;}
}
```## Why?
This small tool was created to simplify the process of generating classes needed for the Entity Framework in C#.
Sharing is caring!
Feel free to improve the code if you'd like. 😊