<#@ template language="c#" HostSpecific="True" #>
<#@ output extension= ".cs" #>
<#
TableHost host = (TableHost)(Host);
host.Fieldlist.Sort(CodeCommon.CompareByintOrder);
#>
using Dapper.Common;
using System;
using System.Collections.Generic;
using System.Text;
namespace Review.Model.AccountModel
{
<# if( host.TableDescription.Length > 0) {#>
//<#= host.TableDescription #>
<# } #>
[Table("<#= host.GetModelClass(host.TableName) #>")]
public class <#= host.GetModelClass(host.TableName) #>
{

<# foreach (ColumnInfo c in host.Fieldlist)
{ #>/// <summary>
/// <#= string.IsNullOrEmpty(c.Description) ? c.ColumnName : c.Description #>
/// </summary>
<# if (c.IsPrimaryKey)
{#>
[Column(name: "<#=c.ColumnName#>", key: ColumnKey.Primary, isIdentity: true, isColumn: true)]
<#}
else{
#>
[Column(name: "<#=c.ColumnName#>")]
<#}#>
public <#= CodeCommon.DbTypeToCS(c.TypeName) #> <#= c.ColumnName #>{ get; set; }

<# } #>

}
}

最新文章

  1. Linux 命令学习
  2. JavaScript 参考手册——javascript本地和内置对象、BOM、DOM
  3. C# - dynamic 类型
  4. 山东理工大学ACM平台题答案关于C语言 1543 Egypt
  5. Spring Cloud Config
  6. 一个简单的基于 DirectShow 的播放器 2(对话框类)
  7. C++设计模式——解释器模式
  8. 【Monkey】Monkey获取包名的方式
  9. uboot中获取dts资源并操作gpio口
  10. python3+selenium入门03-操作谷歌浏览器
  11. Windows 系统安装多个版本JDK, 修改环境变量不生效
  12. ElasticSearch实战——.Net Core中的应用
  13. 【Ansible 文档】【译文】入门教程
  14. Spring Boot(十一):Spring Boot 中 MongoDB 的使用
  15. QButton
  16. 最大子数组之和(N)
  17. sysbench压测mysql基本步骤
  18. css中!important的用法总结
  19. 使用SQL_TRACE进行数据库诊断
  20. ThinkPHP5权限控制

热门文章

  1. 编码方式ASCII、GBK、Unicode、UTF-8比较
  2. mysql 读写分离(手动和自动方法)
  3. PHP程序执行的过程原理
  4. 【Java基础】Java中你必须知道的知识点
  5. 从华为“鸿蒙”备胎看IT项目建设
  6. GPS NMEA-0183协议常用报文数据格式
  7. 别不信!servlet获取到的参数值,也许完全出乎你的意料!
  8. 部署web01,web02,nfs,db01,backup,搭建wordpress,WeCenter,实现共享,热备,实时备份
  9. linux 性能调优工具参考 (linux performance tools)
  10. linux 下使用 tc 模拟网络延迟和丢包-使用 linux 模拟广域网延迟 - Emulating wide area network delays with Linux