using System;
using System.Data;
using System.Data.SqlTypes;
using System.Data.SqlClient;
using System.Collections;
namespace YellowbridgeSoftwareInc.Info
{
///<summary>
/// Purpose: Data transport class for the table 'Shippers'.
///</summary>
public class ShippersInfo
{
#region Class Member Declarations
private int _ShipperID;
private string _CompanyName;
private string _Phone;
private bool _PhoneIsNull = true;
#endregion
public ShippersInfo()
{
}
public ShippersInfo( int ShipperID, string CompanyName, string Phone )
{
this.ShipperID = ShipperID;
this.CompanyName = CompanyName;
this.Phone = Phone;
}
#region Class Property Declarations
public string Phone
{
get{
return _Phone;
}
set{
_Phone = value;
_PhoneIsNull = false;
}
}
public int ShipperID
{
get{ return _ShipperID; }
set{ _ShipperID = value; }
}
public string CompanyName
{
get{ return _CompanyName; }
set{ _CompanyName = value; }
}
#endregion
#region Null Value Support Methods
public void SetPhoneNull()
{
_PhoneIsNull = true;
}
public bool IsPhoneNull()
{
return _PhoneIsNull;
}
#endregion
}
public class ShippersInfoCollection : CollectionBase
{
public ShippersInfo this[int index]
{
get
{
return (ShippersInfo) this.List[index];
}
set
{
this.List[index] = value;
}
}
public void Add( ShippersInfo info )
{
this.List.Add( info );
}
}
}