using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Sql;
using System.Data.SqlClient;
using System.Data.SqlTypes;
using DBOMSqlSharp;
namespace FATIHVAIO.AdventureWorks2008R2.Production
{
public class ProductCategory : SqlTable
{
static int InstanceCount = 0;
SqlColumn<int?> _ProductCategoryID;
SqlColumn<string> _Name;
SqlColumn<Guid?> _rowguid;
SqlColumn<DateTime?> _ModifiedDate;
public SqlColumn<int?> ProductCategoryID
{
get
{
return this._ProductCategoryID;
}
}
public SqlColumn<string> Name
{
get
{
return this._Name;
}
}
public SqlColumn<Guid?> rowguid
{
get
{
return this._rowguid;
}
}
public SqlColumn<DateTime?> ModifiedDate
{
get
{
return this._ModifiedDate;
}
}
public override string ConnectionString
{
get
{
return FATIHVAIOServer.ConnectionString;
}
}
public ProductCategory() : base("ProductCategory", "ProductCategory", "7", "Production")
{
ProductCategory.InstanceCount++;
this.instanceName = this.schema_name + "_" + this.name + "_" + ProductCategory.InstanceCount.ToString();
_ProductCategoryID = new SqlColumn<int?>(this, null, "ProductCategoryID", 4, 10, "", false, false, true, false);
_Name = new SqlColumn<string>(this, null, "Name", 100, 0, "Latin1_General_100_CS_AS", false, false, false, false);
_rowguid = new SqlColumn<Guid?>(this, null, "rowguid", 16, 0, "", false, false, false, false);
_ModifiedDate = new SqlColumn<DateTime?>(this, null, "ModifiedDate", 8, 23, "", false, false, false, false);
}
public ProductCategory(int? id) : this()
{
}
~ProductCategory()
{
ProductCategory.InstanceCount--;
}
}
}