Commits

Anonymous committed 4d82fbf

更新修改模板

Comments (0)

Files changed (2)

CodeUnion.CodeGenerator/App.config

 <configuration>
   <connectionStrings>
     <!--<add name="connectionString" connectionString="Provider=SQLOLEDB; Data Source=10.10.66.150; Initial Catalog=fms; Persist Security Info=False; User ID=testwrite; Password=654321;" providerName="fms"/>-->
-    <add name="connectionString" connectionString="provider=sqloledb;data source=61.160.200.251,3421;User ID=glgtswriter;pwd=Guo4^Li5#Gong6;Initial Catalog=AmrEn" providerName="TPIGateway"/>
+    <add name="connectionString" connectionString="provider=sqloledb;data source=61.160.200.251,3421;User ID=glgtswriter;pwd=Guo4^Li5#Gong6;Initial Catalog=AmrEn" providerName="AmrEn"/>
     <!--<add name="connectionString" connectionString="Provider=SQLOLEDB; Data Source=(local); Initial Catalog=Management; Persist Security Info=False; User ID=test; Password=test;" providerName="Management"/>-->
 
   </connectionStrings>

CodeUnion.CodeGenerator/Templates/3.5/ModelDao.xml.vm

 			(
 #foreach ($column in $columns)
 #each
-#if ($column.Alias == "CreateTime")
+#if ($column.Alias == "CreateTime" || $column.Alias == "LastUpdateTime")
 				GetDate()#between
 ,
 #else