puzi0315
<#@ template language="c#" HostSpecific="True" #>
<#@ output extension= ".cs" #>
<#
    TableHost host = (TableHost)(Host);
    host.Fieldlist.Sort(CodeCommon.CompareByintOrder);
#>
using System; 
using System.Text;
using System.Collections.Generic; 
using System.Data;
namespace <#= host.NameSpace #>.Model<# if( host.Folder.Length > 0) {#>.<#= host.Folder #><# } #>
{
    <# if( host.TableDescription.Length > 0) {#>
     //<#= host.TableDescription #>
    <# } #>
    public class <#= host.GetModelClass(host.TableName) #>
    {
                
          <# foreach (ColumnInfo c in host.Fieldlist)
        { #>/// <summary>
        /// <#= string.IsNullOrEmpty(c.Description) ? c.ColumnName : c.Description #>
        /// </summary>        
         public  <#= CodeCommon.DbTypeToCS(c.TypeName) #><# if(c.Nullable) { #>?<# }#> <#= c.ColumnName #> { get;  set;  }        
        <# } #>
   
    }
}

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2020-05-27
  • 2022-12-23
  • 2021-10-17
  • 2021-05-16
  • 2021-12-16
  • 2022-03-07
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-23
  • 2021-11-23
  • 2022-12-23
相关资源
相似解决方案