Exemple #1
0
        public int Insert(DeviceVO vo)
        {
            int lastInsertId = 0;

            try
            {
                lastInsertId = b.Insert("FP_Device", b.ConvertColName(vo), b.ConvertValueList(vo));
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(lastInsertId);
        }
Exemple #2
0
        public int Update(DeviceVO vo)
        {
            int deviceID = 0;

            try
            {
                b.Update("FP_Device", vo.Id.ToString(), b.ConvertColName(vo), b.ConvertValueList(vo));
                deviceID = vo.Id;
            }
            catch (Exception ex)
            {
                throw ex;
            }
            return(deviceID);
        }