예제 #1
0
        public void Insert(int PortId, string PortName, string Description)
        {
            var item = new DDevicePort();

            item.PortId = PortId;

            item.PortName = PortName;

            item.Description = Description;


            item.Save(UserName);
        }
예제 #2
0
        public void Update(int PortId, string PortName, string Description)
        {
            var item = new DDevicePort();

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

            item.PortId = PortId;

            item.PortName = PortName;

            item.Description = Description;

            item.Save(UserName);
        }
예제 #3
0
 public bool Destroy(object PortId)
 {
     return(DDevicePort.Destroy(PortId) == 1);
 }
예제 #4
0
 public bool Delete(object PortId)
 {
     return(DDevicePort.Delete(PortId) == 1);
 }