测试一下word2007写博客的功能
<%@ CodeTemplate Language="C#" TargetLanguage="Text" ResponseEncoding="UTF-8" Debug="False" Description="Template description here." %>
<%@ Property Name="NameSpace" Type="String" Category="Context" Default="Sms.SmsComponents" Description="The namespace to use for this class" %>
<%@ Property Name="StoredProcedures" Type="SchemaExplorer.CommandSchemaCollection" Category="Database" Description="Stored procedure(s) from which to extract descriptions" %>
<%@ Assembly Name="SchemaExplorer" %>
<%@ Assembly Name="System.Data" %>
<%@ Import Namespace="SchemaExplorer" %>
<%@ Import Namespace="System.Data" %>
namespace <%=NameSpace%>
{
/// <summary>
///
/// </summary>
public class SqlParamerProvider
{
SqlParameter[] parameters =
{
<%foreach(CommandSchema comm in StoredProcedures){%>
<%foreach(ParameterSchema perameter in comm.NonReturnValueParameters){%>
new SqlParameter("<%=GetStorePreceduresParamer(perameter)%>",info.<%=GetStorePreceduresParamer(perameter).Replace("@","")%>),
<%}%>
<%}%>
};
}
}
<script runat="template">
public string GetStorePreceduresParamer( ParameterSchema perameter)
{
return perameter.Name;
}
</script>