表字段转实体
下面展示一些 代码片
。
t_mes_labelprintrcd替换成表名即可
select 'public '+ case xtype when 61 then 'DateTime?' when 56 then 'int' when 104 then 'bool' else 'string' end +' ' + name
+'{ get; set; }'
from syscolumns where id=object_id('t_mes_labelprintrcd') order by colid asc