resource1(codesmith)
<% Start(); %>
<script runat="template">
</script>
<script runat="template">
<!-- #include file="../CommFunctions/CommUtil.cs" -->
public void Start()
{
try
{
this.RenderToFile(this.WebServiceOutputPath + @"\" +this.SourceTable.Name + "Base.cs",true);
}
catch
{}
}
</script>
<script runat="template">
private string _WebServiceOutputPath = String.Empty;
[Editor(typeof(System.Windows.Forms.Design.FolderNameEditor), typeof(System.Drawing.Design.UITypeEditor))]
[CodeTemplateProperty(CodeTemplatePropertyOption.Optional)]
[Category("Web - Advanced")]
[Description("The full path for the the WebService files. this path match with the webservice url.")]
[DefaultValue("")]
public string WebServiceOutputPath
{
get
{
if (_WebServiceOutputPath.Length == 0)
{
return @"c:\NetTiers\" + (ChooseSourceDatabase != null ? ChooseSourceDatabase.Name + @"\WebServices" : @"Output\WebServices");
}
return _WebServiceOutputPath;
}
set
{
if (value.EndsWith("\\")) value = value.Substring(0, value.Length - 1);
_WebServiceOutputPath = value;
}
}
</script>
end table bll