public static void DeleteDataControl(int pId) { try { if (DDataControl.FetchByID(pId) != null) { DDataControl.Delete(pId); } } catch (Exception ex) { throw ex; } }
public static void DeleteDevice(int pId) { try { if (DDeviceList.FetchByID(pId) != null) { new Delete().From(DDeviceList.Schema) .Where(DDeviceList.Columns.DeviceId).IsEqualTo(pId) .Execute(); DDataControl.Delete(DDataControl.Columns.DeviceId, pId); } } catch (Exception ex) { throw ex; } }
public bool Delete(object DataControlId) { return(DDataControl.Delete(DataControlId) == 1); }