Skip to content

Instantly share code, notes, and snippets.

View fredgdaley2's full-sized avatar

Fred Daley fredgdaley2

View GitHub Profile
@fredgdaley2
fredgdaley2 / Create C# Class from MySQL classes
Last active June 6, 2018 07:59
This code create c# class of your Mysql table.
SET @dbName := 'dataquickdev';
SET @table := 'vendorfiles';
SET group_concat_max_len = 2048;
SELECT
CONCAT('public class ', @table, '\n{\n', GROUP_CONCAT(a.property_ SEPARATOR '\n'), '\n}') class_
FROM
(SELECT
CONCAT(
'\tpublic ',
CASE