public void Insert(string PortName, int?CountryID, byte[] Ts)
        {
            PortTable item = new PortTable();

            item.PortName = PortName;

            item.CountryID = CountryID;

            item.Ts = Ts;


            item.Save(UserName);
        }
        public void Update(int PortID, string PortName, int?CountryID, byte[] Ts)
        {
            PortTable item = new PortTable();

            item.MarkOld();
            item.IsLoaded = true;

            item.PortID = PortID;

            item.PortName = PortName;

            item.CountryID = CountryID;

            item.Ts = Ts;

            item.Save(UserName);
        }
 public bool Destroy(object PortID)
 {
     return(PortTable.Destroy(PortID) == 1);
 }
 public bool Delete(object PortID)
 {
     return(PortTable.Delete(PortID) == 1);
 }