- downloads.zip
- Downloads
- BusinessObjectGenerator
- GeneratedFiles
- Sample
- src
- BusinessObjectGenerator
- App_Code
- App_Data
- TheProperties_Data
- Default.aspx
- Default.aspx.cs
- Default_Console.aspx
- Default_Console.aspx.cs
- images
- background_label.gif
- logo.gif
- InvoiceClassDef.xml
- InvoiceClassDef.xsd
- InvoiceClassDef.xsx
- PropertyAndUIPropertyMaps.xml
- PropertyControls
- References
- EntLibHelper.dll
- Microsoft.Practices.EnterpriseLibrary.Caching.dll
- Microsoft.Practices.EnterpriseLibrary.Common.dll
- Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.dll
- Microsoft.Practices.EnterpriseLibrary.Logging.dll
- Microsoft.Practices.ObjectBuilder.dll
- Providers.dll
- Providers.dll.refresh
- SmartCodeGen.ImplementedProviders.dll
- SmartCodeGen.ImplementedProviders.dll.refresh
- SmartCodeGen.WebUtil.dll
- SmartCodeGen.WebUtil.dll.refresh
- scgxsd_console.exe_
- styles
- Templates
- Web.Config
- BusinessObjects.Templates
- src.gpState
- src.sln
- src.suo
- SmartCodeGeneratorXsdConsole
- downloads-noexe.zip
|
// =====================================================================================
// Copyright � 2006 SmartCodeGenerator created by Shahed Khan.
/*
//Microsoft Shared Source Community License (MS-CL)
//Published: October 18, 2005
*/
// If you like this code then feel free to go ahead and use it.
// Your use of this software is entirely at your own risk.
// I make no claims or warrantees about the reliability or fitness of this code for any particular purpose.
// website www.smartcodegenerator.com, email shahed.khan@gmail.com
// =====================================================================================
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using SmartCodeGen.WebUtil.Base;
using System.Collections.Generic;
using SmartCodeGen.WebUtil.Objects;
using SmartCodeGen.Providers;
using BusnessObjects.Templates;
using System.Xml;
public partial class DataClassGeneratorTemplate : BaseTemplate
{
protected void Page_Load(object sender, EventArgs e)
{
}
#region ScFrameworkSpecific
public override void PreGenerateTemplateCode(object sender, EventArgs e)
{
//PreGenerate is Called before the generation of code
//To do
//testProperty = TheProperties.TestProperty;
this.TargetClass = ((ScEventArgs)e).Item["TargetClass"].ToString();
XmlNode classNode = ((ScEventArgs)e).Item["ClassNode"] as XmlNode;
this.InitializeProperties(TheProperties.RootNamespace,
TheProperties.ObjectNamespace, TheProperties.BusinessLogicNamespace,
TheProperties.DataAccessNamespace, TheProperties.DeveloperName, TheProperties.CompanyName,
classNode);
}
public TheProperties TheProperties
{
get { return (TheProperties)ParentPage.TheProperties; }
}
#endregion
//private string testProperty;
//public string TheTestProperty
//{
// get { return testProperty; }
// set { testProperty = value; }
//}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.