zoukankan      html  css  js  c++  java
  • T4模板循环生成插入语句

    <#@ template debug="false" hostspecific="false" language="C#" #> <#@ assembly name="System.Core" #> <#@ import namespace="System.Linq" #> <#@ import namespace="System.Text" #> <#@ import namespace="System.Collections.Generic" #> <#@ output extension=".txt" #> <# for (int i = 1; i < 22; i++) { #> insert into tb_sys_module (f_id, f_parentid, f_layers, f_encode, f_fullname, f_icon, f_urladdress, f_target, f_ismenu, f_isexpand, f_ispublic, f_allowedit, f_allowdelete, f_sortcode, f_deletemark, f_enabledmark, f_description, f_creatortime, f_creatoruserid, f_lastmodifytime, f_lastmodifyuserid, f_deletetime, f_deleteuserid, f_ismodule) values ( '<#= Guid.NewGuid().ToString()#>', '8a579654-de20-4189-80c4-cfc6979cac76', '', '', '', 'fa fa-file', '', 'iframe', 1, 0, 0, 0, 0, <#=i#>, '', 1, '', <#=DateTime.Now.ToString()#>, '9f2ec079-7d0f-4fe2-90ab-8b09a8302aba', '', '', '', '', '否'); <#}#>

  • 相关阅读:
    基本数据类型(int, bool, str)
    万恶之源之运算符
    python基础初识
    leetcode 653. Two Sum IV
    leetcode 16 3Sum Closest
    leetcode15 3Sum
    leetcode 1 Two Sum
    【站立会议】第四天
    【站立会议】第三天
    【站立会议】第二天
  • 原文地址:https://www.cnblogs.com/Anthony518/p/11570373.html
Copyright © 2011-2022 走看看