//
// *** Auto Generated Code by DataRowContainerGenerator
// *** Created by West Wind Technologies, http://www.west-wind.com
// *** 
// *** Generated on: 9/17/2006 10:41:46 PM
//

using System;
using System.Data;
using System.Collections;
using System.Reflection;
using System.Xml.Serialization;
using Westwind.BusinessObjects;

namespace ScriptCallbacks.BusinessObjects
{

	[Serializable]
	public class ChatactivityRow : wwDataRowContainer 
	{			
		public ChatactivityRow() : base() {}
		public ChatactivityRow(DataRow Row) : base(Row) {}

		public String Chatid
		{
			get
			{
				if (this.DataRow == null)
					return this._Chatid;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ChatidColumn) )
						return null;
					return (String) this.DataRow[this.ChatidColumn];
				}
				else
				{
					if (this.DataRow.IsNull("chatid") )
						return null;
				
					return (String) this.DataRow["chatid"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["chatid"] = value;
				
				this._Chatid = value;					
			}
		}
		private String _Chatid;

		public String Sender
		{
			get
			{
				if (this.DataRow == null)
					return this._Sender;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.SenderColumn) )
						return null;
					return (String) this.DataRow[this.SenderColumn];
				}
				else
				{
					if (this.DataRow.IsNull("sender") )
						return null;
				
					return (String) this.DataRow["sender"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["sender"] = value;
				
				this._Sender = value;					
			}
		}
		private String _Sender;

		public DateTime Laston
		{
			get
			{
				if (this.DataRow == null)
					return this._Laston;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.LastonColumn) )
						return DateTime.MinValue;
					return (DateTime) this.DataRow[this.LastonColumn];
				}
				else
				{
					if (this.DataRow.IsNull("laston") )
						return DateTime.MinValue;
				
					return (DateTime) this.DataRow["laston"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["laston"] = value;
				
				this._Laston = value;					
			}
		}
		private DateTime _Laston;

		public DateTime Lastpost
		{
			get
			{
				if (this.DataRow == null)
					return this._Lastpost;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.LastpostColumn) )
						return DateTime.MinValue;
					return (DateTime) this.DataRow[this.LastpostColumn];
				}
				else
				{
					if (this.DataRow.IsNull("lastpost") )
						return DateTime.MinValue;
				
					return (DateTime) this.DataRow["lastpost"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["lastpost"] = value;
				
				this._Lastpost = value;					
			}
		}
		private DateTime _Lastpost;

		public DateTime Signedon
		{
			get
			{
				if (this.DataRow == null)
					return this._Signedon;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.SignedonColumn) )
						return DateTime.MinValue;
					return (DateTime) this.DataRow[this.SignedonColumn];
				}
				else
				{
					if (this.DataRow.IsNull("signedon") )
						return DateTime.MinValue;
				
					return (DateTime) this.DataRow["signedon"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["signedon"] = value;
				
				this._Signedon = value;					
			}
		}
		private DateTime _Signedon;


		// *** Column Definitions
		DataColumn ChatidColumn;
		DataColumn SenderColumn;
		DataColumn LastonColumn;
		DataColumn LastpostColumn;
		DataColumn SignedonColumn;


		protected override void CreateColumns() 
		{
			ChatidColumn = this.DataRow.Table.Columns["Chatid"];
			SenderColumn = this.DataRow.Table.Columns["Sender"];
			LastonColumn = this.DataRow.Table.Columns["Laston"];
			LastpostColumn = this.DataRow.Table.Columns["Lastpost"];
			SignedonColumn = this.DataRow.Table.Columns["Signedon"];
			this.ColumnsCreated = true;
		}

	}

	[Serializable]
	public class ChatmessagesRow : wwDataRowContainer 
	{			
		public ChatmessagesRow() : base() {}
		public ChatmessagesRow(DataRow Row) : base(Row) {}

		public Int32 Pk
		{
			get
			{
				if (this.DataRow == null)
					return this._Pk;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.PkColumn) )
						return 0;
					return (Int32) this.DataRow[this.PkColumn];
				}
				else
				{
					if (this.DataRow.IsNull("pk") )
						return 0;
				
					return (Int32) this.DataRow["pk"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["pk"] = value;
				
				this._Pk = value;					
			}
		}
		private Int32 _Pk;

		public String Chatid
		{
			get
			{
				if (this.DataRow == null)
					return this._Chatid;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ChatidColumn) )
						return null;
					return (String) this.DataRow[this.ChatidColumn];
				}
				else
				{
					if (this.DataRow.IsNull("chatid") )
						return null;
				
					return (String) this.DataRow["chatid"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["chatid"] = value;
				
				this._Chatid = value;					
			}
		}
		private String _Chatid;

		public DateTime Time
		{
			get
			{
				if (this.DataRow == null)
					return this._Time;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.TimeColumn) )
						return DateTime.MinValue;
					return (DateTime) this.DataRow[this.TimeColumn];
				}
				else
				{
					if (this.DataRow.IsNull("time") )
						return DateTime.MinValue;
				
					return (DateTime) this.DataRow["time"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["time"] = value;
				
				this._Time = value;					
			}
		}
		private DateTime _Time;

		public String Message
		{
			get
			{
				if (this.DataRow == null)
					return this._Message;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.MessageColumn) )
						return null;
					return (String) this.DataRow[this.MessageColumn];
				}
				else
				{
					if (this.DataRow.IsNull("message") )
						return null;
				
					return (String) this.DataRow["message"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["message"] = value;
				
				this._Message = value;					
			}
		}
		private String _Message;

		public String Sender
		{
			get
			{
				if (this.DataRow == null)
					return this._Sender;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.SenderColumn) )
						return null;
					return (String) this.DataRow[this.SenderColumn];
				}
				else
				{
					if (this.DataRow.IsNull("sender") )
						return null;
				
					return (String) this.DataRow["sender"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["sender"] = value;
				
				this._Sender = value;					
			}
		}
		private String _Sender;


		// *** Column Definitions
		DataColumn PkColumn;
		DataColumn ChatidColumn;
		DataColumn TimeColumn;
		DataColumn MessageColumn;
		DataColumn SenderColumn;


		protected override void CreateColumns() 
		{
			PkColumn = this.DataRow.Table.Columns["Pk"];
			ChatidColumn = this.DataRow.Table.Columns["Chatid"];
			TimeColumn = this.DataRow.Table.Columns["Time"];
			MessageColumn = this.DataRow.Table.Columns["Message"];
			SenderColumn = this.DataRow.Table.Columns["Sender"];
			this.ColumnsCreated = true;
		}

	}

	[Serializable]
	public class CustomersRow : wwDataRowContainer 
	{			
		public CustomersRow() : base() {}
		public CustomersRow(DataRow Row) : base(Row) {}

		public String Customerid
		{
			get
			{
				if (this.DataRow == null)
					return this._Customerid;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.CustomeridColumn) )
						return null;
					return (String) this.DataRow[this.CustomeridColumn];
				}
				else
				{
					if (this.DataRow.IsNull("customerid") )
						return null;
				
					return (String) this.DataRow["customerid"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["customerid"] = value;
				
				this._Customerid = value;					
			}
		}
		private String _Customerid;

		public String Companyname
		{
			get
			{
				if (this.DataRow == null)
					return this._Companyname;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.CompanynameColumn) )
						return null;
					return (String) this.DataRow[this.CompanynameColumn];
				}
				else
				{
					if (this.DataRow.IsNull("companyname") )
						return null;
				
					return (String) this.DataRow["companyname"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["companyname"] = value;
				
				this._Companyname = value;					
			}
		}
		private String _Companyname;

		public String Contactname
		{
			get
			{
				if (this.DataRow == null)
					return this._Contactname;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ContactnameColumn) )
						return null;
					return (String) this.DataRow[this.ContactnameColumn];
				}
				else
				{
					if (this.DataRow.IsNull("contactname") )
						return null;
				
					return (String) this.DataRow["contactname"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["contactname"] = value;
				
				this._Contactname = value;					
			}
		}
		private String _Contactname;

		public String Contacttitle
		{
			get
			{
				if (this.DataRow == null)
					return this._Contacttitle;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ContacttitleColumn) )
						return null;
					return (String) this.DataRow[this.ContacttitleColumn];
				}
				else
				{
					if (this.DataRow.IsNull("contacttitle") )
						return null;
				
					return (String) this.DataRow["contacttitle"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["contacttitle"] = value;
				
				this._Contacttitle = value;					
			}
		}
		private String _Contacttitle;

		public String Address
		{
			get
			{
				if (this.DataRow == null)
					return this._Address;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.AddressColumn) )
						return null;
					return (String) this.DataRow[this.AddressColumn];
				}
				else
				{
					if (this.DataRow.IsNull("address") )
						return null;
				
					return (String) this.DataRow["address"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["address"] = value;
				
				this._Address = value;					
			}
		}
		private String _Address;

		public String City
		{
			get
			{
				if (this.DataRow == null)
					return this._City;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.CityColumn) )
						return null;
					return (String) this.DataRow[this.CityColumn];
				}
				else
				{
					if (this.DataRow.IsNull("city") )
						return null;
				
					return (String) this.DataRow["city"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["city"] = value;
				
				this._City = value;					
			}
		}
		private String _City;

		public String Region
		{
			get
			{
				if (this.DataRow == null)
					return this._Region;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.RegionColumn) )
						return null;
					return (String) this.DataRow[this.RegionColumn];
				}
				else
				{
					if (this.DataRow.IsNull("region") )
						return null;
				
					return (String) this.DataRow["region"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["region"] = value;
				
				this._Region = value;					
			}
		}
		private String _Region;

		public String Postalcode
		{
			get
			{
				if (this.DataRow == null)
					return this._Postalcode;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.PostalcodeColumn) )
						return null;
					return (String) this.DataRow[this.PostalcodeColumn];
				}
				else
				{
					if (this.DataRow.IsNull("postalcode") )
						return null;
				
					return (String) this.DataRow["postalcode"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["postalcode"] = value;
				
				this._Postalcode = value;					
			}
		}
		private String _Postalcode;

		public String Country
		{
			get
			{
				if (this.DataRow == null)
					return this._Country;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.CountryColumn) )
						return null;
					return (String) this.DataRow[this.CountryColumn];
				}
				else
				{
					if (this.DataRow.IsNull("country") )
						return null;
				
					return (String) this.DataRow["country"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["country"] = value;
				
				this._Country = value;					
			}
		}
		private String _Country;

		public String Phone
		{
			get
			{
				if (this.DataRow == null)
					return this._Phone;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.PhoneColumn) )
						return null;
					return (String) this.DataRow[this.PhoneColumn];
				}
				else
				{
					if (this.DataRow.IsNull("phone") )
						return null;
				
					return (String) this.DataRow["phone"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["phone"] = value;
				
				this._Phone = value;					
			}
		}
		private String _Phone;

		public String Fax
		{
			get
			{
				if (this.DataRow == null)
					return this._Fax;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.FaxColumn) )
						return null;
					return (String) this.DataRow[this.FaxColumn];
				}
				else
				{
					if (this.DataRow.IsNull("fax") )
						return null;
				
					return (String) this.DataRow["fax"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["fax"] = value;
				
				this._Fax = value;					
			}
		}
		private String _Fax;

		public DateTime Entered
		{
			get
			{
				if (this.DataRow == null)
					return this._Entered;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.EnteredColumn) )
						return DateTime.MinValue;
					return (DateTime) this.DataRow[this.EnteredColumn];
				}
				else
				{
					if (this.DataRow.IsNull("entered") )
						return DateTime.MinValue;
				
					return (DateTime) this.DataRow["entered"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["entered"] = value;
				
				this._Entered = value;					
			}
		}
		private DateTime _Entered;


		// *** Column Definitions
		DataColumn CustomeridColumn;
		DataColumn CompanynameColumn;
		DataColumn ContactnameColumn;
		DataColumn ContacttitleColumn;
		DataColumn AddressColumn;
		DataColumn CityColumn;
		DataColumn RegionColumn;
		DataColumn PostalcodeColumn;
		DataColumn CountryColumn;
		DataColumn PhoneColumn;
		DataColumn FaxColumn;
		DataColumn EnteredColumn;


		protected override void CreateColumns() 
		{
			CustomeridColumn = this.DataRow.Table.Columns["Customerid"];
			CompanynameColumn = this.DataRow.Table.Columns["Companyname"];
			ContactnameColumn = this.DataRow.Table.Columns["Contactname"];
			ContacttitleColumn = this.DataRow.Table.Columns["Contacttitle"];
			AddressColumn = this.DataRow.Table.Columns["Address"];
			CityColumn = this.DataRow.Table.Columns["City"];
			RegionColumn = this.DataRow.Table.Columns["Region"];
			PostalcodeColumn = this.DataRow.Table.Columns["Postalcode"];
			CountryColumn = this.DataRow.Table.Columns["Country"];
			PhoneColumn = this.DataRow.Table.Columns["Phone"];
			FaxColumn = this.DataRow.Table.Columns["Fax"];
			EnteredColumn = this.DataRow.Table.Columns["Entered"];
			this.ColumnsCreated = true;
		}

	}

	[Serializable]
	public class OrdersRow : wwDataRowContainer 
	{			
		public OrdersRow() : base() {}
		public OrdersRow(DataRow Row) : base(Row) {}

		public Int32 Orderid
		{
			get
			{
				if (this.DataRow == null)
					return this._Orderid;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.OrderidColumn) )
						return 0;
					return (Int32) this.DataRow[this.OrderidColumn];
				}
				else
				{
					if (this.DataRow.IsNull("orderid") )
						return 0;
				
					return (Int32) this.DataRow["orderid"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["orderid"] = value;
				
				this._Orderid = value;					
			}
		}
		private Int32 _Orderid;

		public String Customerid
		{
			get
			{
				if (this.DataRow == null)
					return this._Customerid;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.CustomeridColumn) )
						return null;
					return (String) this.DataRow[this.CustomeridColumn];
				}
				else
				{
					if (this.DataRow.IsNull("customerid") )
						return null;
				
					return (String) this.DataRow["customerid"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["customerid"] = value;
				
				this._Customerid = value;					
			}
		}
		private String _Customerid;

		public Int32 Employeeid
		{
			get
			{
				if (this.DataRow == null)
					return this._Employeeid;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.EmployeeidColumn) )
						return 0;
					return (Int32) this.DataRow[this.EmployeeidColumn];
				}
				else
				{
					if (this.DataRow.IsNull("employeeid") )
						return 0;
				
					return (Int32) this.DataRow["employeeid"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["employeeid"] = value;
				
				this._Employeeid = value;					
			}
		}
		private Int32 _Employeeid;

		public DateTime Orderdate
		{
			get
			{
				if (this.DataRow == null)
					return this._Orderdate;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.OrderdateColumn) )
						return DateTime.MinValue;
					return (DateTime) this.DataRow[this.OrderdateColumn];
				}
				else
				{
					if (this.DataRow.IsNull("orderdate") )
						return DateTime.MinValue;
				
					return (DateTime) this.DataRow["orderdate"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["orderdate"] = value;
				
				this._Orderdate = value;					
			}
		}
		private DateTime _Orderdate;

		public DateTime Requireddate
		{
			get
			{
				if (this.DataRow == null)
					return this._Requireddate;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.RequireddateColumn) )
						return DateTime.MinValue;
					return (DateTime) this.DataRow[this.RequireddateColumn];
				}
				else
				{
					if (this.DataRow.IsNull("requireddate") )
						return DateTime.MinValue;
				
					return (DateTime) this.DataRow["requireddate"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["requireddate"] = value;
				
				this._Requireddate = value;					
			}
		}
		private DateTime _Requireddate;

		public DateTime Shippeddate
		{
			get
			{
				if (this.DataRow == null)
					return this._Shippeddate;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ShippeddateColumn) )
						return DateTime.MinValue;
					return (DateTime) this.DataRow[this.ShippeddateColumn];
				}
				else
				{
					if (this.DataRow.IsNull("shippeddate") )
						return DateTime.MinValue;
				
					return (DateTime) this.DataRow["shippeddate"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["shippeddate"] = value;
				
				this._Shippeddate = value;					
			}
		}
		private DateTime _Shippeddate;

		public Int32 Shipvia
		{
			get
			{
				if (this.DataRow == null)
					return this._Shipvia;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ShipviaColumn) )
						return 0;
					return (Int32) this.DataRow[this.ShipviaColumn];
				}
				else
				{
					if (this.DataRow.IsNull("shipvia") )
						return 0;
				
					return (Int32) this.DataRow["shipvia"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["shipvia"] = value;
				
				this._Shipvia = value;					
			}
		}
		private Int32 _Shipvia;

		public Decimal Freight
		{
			get
			{
				if (this.DataRow == null)
					return this._Freight;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.FreightColumn) )
						return 0M;
					return (Decimal) this.DataRow[this.FreightColumn];
				}
				else
				{
					if (this.DataRow.IsNull("freight") )
						return 0M;
				
					return (Decimal) this.DataRow["freight"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["freight"] = value;
				
				this._Freight = value;					
			}
		}
		private Decimal _Freight;

		public String Shipname
		{
			get
			{
				if (this.DataRow == null)
					return this._Shipname;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ShipnameColumn) )
						return null;
					return (String) this.DataRow[this.ShipnameColumn];
				}
				else
				{
					if (this.DataRow.IsNull("shipname") )
						return null;
				
					return (String) this.DataRow["shipname"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["shipname"] = value;
				
				this._Shipname = value;					
			}
		}
		private String _Shipname;

		public String Shipaddress
		{
			get
			{
				if (this.DataRow == null)
					return this._Shipaddress;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ShipaddressColumn) )
						return null;
					return (String) this.DataRow[this.ShipaddressColumn];
				}
				else
				{
					if (this.DataRow.IsNull("shipaddress") )
						return null;
				
					return (String) this.DataRow["shipaddress"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["shipaddress"] = value;
				
				this._Shipaddress = value;					
			}
		}
		private String _Shipaddress;

		public String Shipcity
		{
			get
			{
				if (this.DataRow == null)
					return this._Shipcity;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ShipcityColumn) )
						return null;
					return (String) this.DataRow[this.ShipcityColumn];
				}
				else
				{
					if (this.DataRow.IsNull("shipcity") )
						return null;
				
					return (String) this.DataRow["shipcity"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["shipcity"] = value;
				
				this._Shipcity = value;					
			}
		}
		private String _Shipcity;

		public String Shipregion
		{
			get
			{
				if (this.DataRow == null)
					return this._Shipregion;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ShipregionColumn) )
						return null;
					return (String) this.DataRow[this.ShipregionColumn];
				}
				else
				{
					if (this.DataRow.IsNull("shipregion") )
						return null;
				
					return (String) this.DataRow["shipregion"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["shipregion"] = value;
				
				this._Shipregion = value;					
			}
		}
		private String _Shipregion;

		public String Shippostalcode
		{
			get
			{
				if (this.DataRow == null)
					return this._Shippostalcode;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ShippostalcodeColumn) )
						return null;
					return (String) this.DataRow[this.ShippostalcodeColumn];
				}
				else
				{
					if (this.DataRow.IsNull("shippostalcode") )
						return null;
				
					return (String) this.DataRow["shippostalcode"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["shippostalcode"] = value;
				
				this._Shippostalcode = value;					
			}
		}
		private String _Shippostalcode;

		public String Shipcountry
		{
			get
			{
				if (this.DataRow == null)
					return this._Shipcountry;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ShipcountryColumn) )
						return null;
					return (String) this.DataRow[this.ShipcountryColumn];
				}
				else
				{
					if (this.DataRow.IsNull("shipcountry") )
						return null;
				
					return (String) this.DataRow["shipcountry"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["shipcountry"] = value;
				
				this._Shipcountry = value;					
			}
		}
		private String _Shipcountry;


		// *** Column Definitions
		DataColumn OrderidColumn;
		DataColumn CustomeridColumn;
		DataColumn EmployeeidColumn;
		DataColumn OrderdateColumn;
		DataColumn RequireddateColumn;
		DataColumn ShippeddateColumn;
		DataColumn ShipviaColumn;
		DataColumn FreightColumn;
		DataColumn ShipnameColumn;
		DataColumn ShipaddressColumn;
		DataColumn ShipcityColumn;
		DataColumn ShipregionColumn;
		DataColumn ShippostalcodeColumn;
		DataColumn ShipcountryColumn;


		protected override void CreateColumns() 
		{
			OrderidColumn = this.DataRow.Table.Columns["Orderid"];
			CustomeridColumn = this.DataRow.Table.Columns["Customerid"];
			EmployeeidColumn = this.DataRow.Table.Columns["Employeeid"];
			OrderdateColumn = this.DataRow.Table.Columns["Orderdate"];
			RequireddateColumn = this.DataRow.Table.Columns["Requireddate"];
			ShippeddateColumn = this.DataRow.Table.Columns["Shippeddate"];
			ShipviaColumn = this.DataRow.Table.Columns["Shipvia"];
			FreightColumn = this.DataRow.Table.Columns["Freight"];
			ShipnameColumn = this.DataRow.Table.Columns["Shipname"];
			ShipaddressColumn = this.DataRow.Table.Columns["Shipaddress"];
			ShipcityColumn = this.DataRow.Table.Columns["Shipcity"];
			ShipregionColumn = this.DataRow.Table.Columns["Shipregion"];
			ShippostalcodeColumn = this.DataRow.Table.Columns["Shippostalcode"];
			ShipcountryColumn = this.DataRow.Table.Columns["Shipcountry"];
			this.ColumnsCreated = true;
		}

	}

	[Serializable]
	public class ProductsRow : wwDataRowContainer 
	{			
		public ProductsRow() : base() {}
		public ProductsRow(DataRow Row) : base(Row) {}

		public Int32 Productid
		{
			get
			{
				if (this.DataRow == null)
					return this._Productid;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ProductidColumn) )
						return 0;
					return (Int32) this.DataRow[this.ProductidColumn];
				}
				else
				{
					if (this.DataRow.IsNull("productid") )
						return 0;
				
					return (Int32) this.DataRow["productid"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["productid"] = value;
				
				this._Productid = value;					
			}
		}
		private Int32 _Productid;

		public String Productname
		{
			get
			{
				if (this.DataRow == null)
					return this._Productname;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ProductnameColumn) )
						return null;
					return (String) this.DataRow[this.ProductnameColumn];
				}
				else
				{
					if (this.DataRow.IsNull("productname") )
						return null;
				
					return (String) this.DataRow["productname"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["productname"] = value;
				
				this._Productname = value;					
			}
		}
		private String _Productname;

		public Int32 Supplierid
		{
			get
			{
				if (this.DataRow == null)
					return this._Supplierid;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.SupplieridColumn) )
						return 0;
					return (Int32) this.DataRow[this.SupplieridColumn];
				}
				else
				{
					if (this.DataRow.IsNull("supplierid") )
						return 0;
				
					return (Int32) this.DataRow["supplierid"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["supplierid"] = value;
				
				this._Supplierid = value;					
			}
		}
		private Int32 _Supplierid;

		public Int32 Categoryid
		{
			get
			{
				if (this.DataRow == null)
					return this._Categoryid;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.CategoryidColumn) )
						return 0;
					return (Int32) this.DataRow[this.CategoryidColumn];
				}
				else
				{
					if (this.DataRow.IsNull("categoryid") )
						return 0;
				
					return (Int32) this.DataRow["categoryid"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["categoryid"] = value;
				
				this._Categoryid = value;					
			}
		}
		private Int32 _Categoryid;

		public String Quantityperunit
		{
			get
			{
				if (this.DataRow == null)
					return this._Quantityperunit;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.QuantityperunitColumn) )
						return null;
					return (String) this.DataRow[this.QuantityperunitColumn];
				}
				else
				{
					if (this.DataRow.IsNull("quantityperunit") )
						return null;
				
					return (String) this.DataRow["quantityperunit"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["quantityperunit"] = value;
				
				this._Quantityperunit = value;					
			}
		}
		private String _Quantityperunit;

		public Decimal Unitprice
		{
			get
			{
				if (this.DataRow == null)
					return this._Unitprice;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.UnitpriceColumn) )
						return 0M;
					return (Decimal) this.DataRow[this.UnitpriceColumn];
				}
				else
				{
					if (this.DataRow.IsNull("unitprice") )
						return 0M;
				
					return (Decimal) this.DataRow["unitprice"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["unitprice"] = value;
				
				this._Unitprice = value;					
			}
		}
		private Decimal _Unitprice;

		public Int16 Unitsinstock
		{
			get
			{
				if (this.DataRow == null)
					return this._Unitsinstock;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.UnitsinstockColumn) )
						return 0;
					return (Int16) this.DataRow[this.UnitsinstockColumn];
				}
				else
				{
					if (this.DataRow.IsNull("unitsinstock") )
						return 0;
				
					return (Int16) this.DataRow["unitsinstock"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["unitsinstock"] = value;
				
				this._Unitsinstock = value;					
			}
		}
		private Int16 _Unitsinstock;

		public Int16 Unitsonorder
		{
			get
			{
				if (this.DataRow == null)
					return this._Unitsonorder;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.UnitsonorderColumn) )
						return 0;
					return (Int16) this.DataRow[this.UnitsonorderColumn];
				}
				else
				{
					if (this.DataRow.IsNull("unitsonorder") )
						return 0;
				
					return (Int16) this.DataRow["unitsonorder"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["unitsonorder"] = value;
				
				this._Unitsonorder = value;					
			}
		}
		private Int16 _Unitsonorder;

		public Int16 Reorderlevel
		{
			get
			{
				if (this.DataRow == null)
					return this._Reorderlevel;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ReorderlevelColumn) )
						return 0;
					return (Int16) this.DataRow[this.ReorderlevelColumn];
				}
				else
				{
					if (this.DataRow.IsNull("reorderlevel") )
						return 0;
				
					return (Int16) this.DataRow["reorderlevel"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["reorderlevel"] = value;
				
				this._Reorderlevel = value;					
			}
		}
		private Int16 _Reorderlevel;

		public Boolean Discontinued
		{
			get
			{
				if (this.DataRow == null)
					return this._Discontinued;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.DiscontinuedColumn) )
						return false;
					return (Boolean) this.DataRow[this.DiscontinuedColumn];
				}
				else
				{
					if (this.DataRow.IsNull("discontinued") )
						return false;
				
					return (Boolean) this.DataRow["discontinued"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["discontinued"] = value;
				
				this._Discontinued = value;					
			}
		}
		private Boolean _Discontinued;

		public DateTime Reorderexpected
		{
			get
			{
				if (this.DataRow == null)
					return this._Reorderexpected;

				if (this.UseColumns) 
                {
					if (this.DataRow.IsNull(this.ReorderexpectedColumn) )
						return DateTime.MinValue;
					return (DateTime) this.DataRow[this.ReorderexpectedColumn];
				}
				else
				{
					if (this.DataRow.IsNull("reorderexpected") )
						return DateTime.MinValue;
				
					return (DateTime) this.DataRow["reorderexpected"];
				}
			}
			set 
			{
				if (DataRow != null)
					this.DataRow["reorderexpected"] = value;
				
				this._Reorderexpected = value;					
			}
		}
		private DateTime _Reorderexpected;


		// *** Column Definitions
		DataColumn ProductidColumn;
		DataColumn ProductnameColumn;
		DataColumn SupplieridColumn;
		DataColumn CategoryidColumn;
		DataColumn QuantityperunitColumn;
		DataColumn UnitpriceColumn;
		DataColumn UnitsinstockColumn;
		DataColumn UnitsonorderColumn;
		DataColumn ReorderlevelColumn;
		DataColumn DiscontinuedColumn;
		DataColumn ReorderexpectedColumn;


		protected override void CreateColumns() 
		{
			ProductidColumn = this.DataRow.Table.Columns["Productid"];
			ProductnameColumn = this.DataRow.Table.Columns["Productname"];
			SupplieridColumn = this.DataRow.Table.Columns["Supplierid"];
			CategoryidColumn = this.DataRow.Table.Columns["Categoryid"];
			QuantityperunitColumn = this.DataRow.Table.Columns["Quantityperunit"];
			UnitpriceColumn = this.DataRow.Table.Columns["Unitprice"];
			UnitsinstockColumn = this.DataRow.Table.Columns["Unitsinstock"];
			UnitsonorderColumn = this.DataRow.Table.Columns["Unitsonorder"];
			ReorderlevelColumn = this.DataRow.Table.Columns["Reorderlevel"];
			DiscontinuedColumn = this.DataRow.Table.Columns["Discontinued"];
			ReorderexpectedColumn = this.DataRow.Table.Columns["Reorderexpected"];
			this.ColumnsCreated = true;
		}

	}

}

#if false   // Generation Configuration Settings - don't remove
<!-- Start DataRowContainersConfiguration -->
<?xml version="1.0" encoding="utf-8"?>
<EntityGenerator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <FileName>DataRowGenerator.Config</FileName>
   <ConnectionString>server=(local);database=AjaxAspNet;trusted_connection=true;</ConnectionString>
   <Tables>ChatActivity,ChatMessages,Customers,Orders,Products</Tables>
   <TablePrefix />
   <StripTablePrefixForClass>false</StripTablePrefixForClass>
   <Namespace>ScriptCallbacks.BusinessObjects</Namespace>
   <OutputFile>c:\projects2005\Articles\wwHoverPanel\App_Code\DataAccess\entities.cs</OutputFile>
   <EntityClassPostFix>Row</EntityClassPostFix>
   <UseProperCaseForProperties>true</UseProperCaseForProperties>
   <UseProperCaseForClasses>true</UseProperCaseForClasses>
   <wwDataRowContainersNameSpace>Westwind.BusinessObjects</wwDataRowContainersNameSpace>
</EntityGenerator>
<!-- End DataRowContainersConfiguration -->
#endif
