<#@ template debug="True" hostspecific="True" language="C#" #><#@ assembly name="" #>
<#@ assembly name="" #>
<#@ assembly name="" #>
<#@ import namespace="" #>
<#@ import namespace="" #>
<#@ import namespace="" #>
<#@ import namespace="" #>
<#@ import namespace="" #>
<#@ import namespace="" #>
<#@ output extension=".cs" #>
using System;
using ;
using ;
namespace
{
<#
string connectionString = "Data Source=localhost;Initial Catalog=EDNFramework;User ID=sa;pwd=as";
SqlConnection conn = new SqlConnection(connectionString);
();
schema = ("TABLES");
string selectQuery = "select * from @tableName";
SqlCommand command = new SqlCommand(selectQuery,conn);
SqlDataAdapter ad = new SqlDataAdapter(command);
ds = new DataSet();
foreach( row in )
{
#>
public class <#= row["TABLE_NAME"].ToString()#>
{<#
();
= ("@tableName",row["TABLE_NAME"].ToString());
(ds, , row["TABLE_NAME"].ToString());
foreach (DataColumn dc in [0].Columns)
{#>
[DataMapping("<#= #>")]
public <#= #> <#= #> { get; set; }
<#}#>
}
<#}#>
}