1. Fix no MySQL comment issues
Replace the original file
2. Update the models template
<#@ Template language="C #"Hostspecific="True"#><#@ Output extension=". CS"#><# Tablehost Host=(Tablehost) (Host); Host. Fieldlist.sort (Codecommon.comparebyintorder);>usingdapper.extension;usingSystem;usingSystem.Text;usingSystem.Collections.Generic;usingSystem.Data;usingNewtonsoft.json;namespace<#= host. NameSpace #>. models<#if(host. Folder.length >0) {#>.<#= host. Folder #><#} #>{ <#if(host. Tabledescription.length >0) {#>//<#= host. Tabledescription #><#} #>[Table ("<#= host. Getmodelclass (host. TableName) #>")] Public class<#= host. Getmodelclass (host. TableName) #> { <#foreach(Columninfo Cinchhost. FieldList) {#>/// <summary> /// <#= String. IsNullOrEmpty (c.description)? C.columnname:c.description #> /// </summary>[Jsonproperty ("<#= c.columnname.tostring (). ToLower () #>")] Public<#= Codecommon.dbtypetocs (c.typename) #> <#= c.columnname.substring (0,1). ToUpper () +c.columnname.substring (1) #>{Get;Set; } <#} #> }}
Dynamic Soft generator Add MySQL comment