$%@ Page Language="C#" %#
$%@ Import Namespace="System.Data" %#
$!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"#
$script runat="server"#
//TODO:
// Create an Object of the DataTable You need class for
// Assign Connection string name from Web.config
// Assign Data Set Name
// dsBCT.BL_PRODMSTDataTable dt = new dsBCT.BL_PRODMSTDataTable();
dsFinance.FI_JVDTLDataTable dt = new dsFinance.FI_JVDTLDataTable();
//dsHR.H_EMPSKILLDTLDataTable dt = new dsHR.H_EMPSKILLDTLDataTable();
//DataTable dt = new DataTable();
public string TableName
{
get
{
String tblName = dt.TableName.Replace("DataTable", "");
tblName = "cls" + tblName.Replace("FI_", "") + "_CDO";
return tblName;
}
}
public string ConnectionStringName = "dbConnectionString";
public string DataSetName = "CodeGenerator";
public StringBuilder param = new StringBuilder();
$/script#
$html xmlns="http://www.w3.org/1999/xhtml"#
$head runat="server"#
$title#CDO$/title#
$/head#
$body#
$form id="form1" runat="server"#
$div#
$pre#
using System;
/*
Company Name : Dharmik Infotech, Ahmedabad
Project Name : !BBM$ (Integrated Blood Bank Management System)
Module : FINANCE
Create By : MITESH PATEL
Create Date : $%= DateTime.Now %#
Purpose : For $%= dt.TableName%#
Modify By :
Modify Date :
Modify Purpose :
*/
namespace FinanceClassLib.Transaction.CDO
{
public class $%=TableName%# : clsCommon_CDO
{
$%
foreach (DataColumn col in dt.Columns)
{
%#
private $%=col.DataType.Name %# _$%=col.ColumnName%#;
public $%=col.DataType.Name %# $%=col.ColumnName%#
{
get{ return _$%=col.ColumnName%#; }
set{ _$%=col.ColumnName%#=value; }
}
$%
}
%#
}
}
$/pre#
$/div#
$/form#
$/body#
$/html#
2/21/11
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment