This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select 'replacewithtablename' into @table; | |
select 'replacewithdatabasename' into @schema; | |
select GROUP_CONCAT(r.x SEPARATOR '\n') from | |
( | |
select '[DataAccessObject]'as x,'grp'as grp union | |
select concat('public abstract class ',@table,'{') as x, 'grp' as grp | |
union | |
select concat('[PersistedMember]\npublic abstract ',tps.dest,IF(tps.dest = 'string', ' ', IF(is_nullable = 'NO', ' ', '? ')), REPLACE(column_name, ' ', ''),' {get;set;}'), 'grp' |