Ejemplo n.º 1
0
        public void DeleteDevice(int id)
        {
            TableOperations <Device> deviceTable = DataContext.Table <Device>();

            deviceTable.DeleteRecordWhere("ParentID = {0}", id);
            deviceTable.DeleteRecord(id);
        }
Ejemplo n.º 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);
        }