예제 #1
0
        public void DeleteDevice(int id)
        {
            TableOperations <Device> deviceTable = DataContext.Table <Device>();

            deviceTable.DeleteRecordWhere("ParentID = {0}", id);
            deviceTable.DeleteRecord(id);
        }
예제 #2
0
        public void DeleteDevice(int id)
        {
            // TODO: Delete associated custom action adapters (generated by tag templates)
            TableOperations <Device> deviceTable = DataContext.Table <Device>();

            deviceTable.DeleteRecordWhere("ParentID = {0}", id);
            deviceTable.DeleteRecord(id);
        }