level 1
<%@ CodeTemplate Language="C
#" TargetLanguage="C#
" Description="Call the DBClass and DBClassXml template" %>
<%@ Property Name="CurDB" Type="SchemaExplorer.DatabaseSchema" Category="Context" Description="????????." %>
<%@ Assembly Name="SchemaExplorer" %>
<%@ Assembly Name="System.Design" %>
<%@ Assembly Name="CodeSmith.CustomProperties" %>
<%@ Import Namespace="CodeSmith.CustomProperties" %>
<%@ Import Namespace="SchemaExplorer" %>
<%
GenEntity();
GenXml();
GenXmlSelf();
GenBLLClass();
GenBLLSelf();
%>
private string _xmlDirectory = String.Empty;
[Editor(typeof(System.Windows.Forms.Design.FolderNameEditor), typeof(System.Drawing.Design.UITypeEditor))]
[Optional]
[Category("Output")]
[Description("The directory to output the results to.")]
public string XmlDirectory
{
get
{
// default to the directory that the template is located in
if (_xmlDirectory.Length == 0) return @"D:\ASPNET\CodeSmithResult\XML\";
return _xmlDirectory;
}
set
{
_xmlDirectory = value;
}
}
private string _xmlDirectorySelf = String.Empty;
[Editor(typeof(System.Windows.Forms.Design.FolderNameEditor), typeof(System.Drawing.Design.UITypeEditor))]
[Optional]
[Category("Output")]
[Description("The directory to output the results to.")]
public string XmlDirectorySelf
{
get
{
// default to the directory that the template is located in
if (_xmlDirectorySelf.Length == 0) return @"D:\ASPNET\CodeSmithResult\XMLSelf\";
return _xmlDirectorySelf;
}
set
{
_xmlDirectorySelf = value;
}
}
private string _EntityDirectory = String.Empty;
[Editor(typeof(System.Windows.Forms.Design.FolderNameEditor), typeof(System.Drawing.Design.UITypeEditor))]
[Optional]
[Category("Output")]
[Description("The directory to output the results to.")]
public string EntityDirectory
{
get
{
// default to the directory that the template is located in
if (_EntityDirectory.Length == 0) return @"D:\ASPNET\CodeSmithResult\Entity\";
2009年04月02日 08点04分
