<%
@ CodeTemplate Language
=
"
C#
"
TargetLanguage
=
"
T-SQL
"
Description = " Generates a update stored procedure. " %>
-----------------------------------------------------------------
-- Date Created: <%= DateTime.Now.ToLongDateString() %>
-- Created By: guojiang
-----------------------------------------------------------------
< script runat = " template " >
private string outputDirectory = " f:\\ " ;
public string Getstring()
{
string param ="hehe!";
return param;
}
</ script >
<%=
this .Getstring()
%>
<%= outputDirectory %> ;
Description = " Generates a update stored procedure. " %>
-----------------------------------------------------------------
-- Date Created: <%= DateTime.Now.ToLongDateString() %>
-- Created By: guojiang
-----------------------------------------------------------------
< script runat = " template " >
private string outputDirectory = " f:\\ " ;
public string Getstring()
{
string param ="hehe!";
return param;
}
</ script >
<%=
this .Getstring()
%>
<%= outputDirectory %> ;
调用用<% %> 括起来,一般有一个主函数来执行整个模板的函数
<%
this.Getstring();
%>
//取得函数的值
<%=
this.Getstring()
%>