From 30f810a03e2ade7ebd6916b7cd8d5f77468d7d0c Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Fri, 1 Jun 2007 18:58:20 +0000 Subject: * MySQL Inventory data interfaces written - can now write an inventory server (yay!) --- .../OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs') diff --git a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs index 48d8e93..50ffbb0 100644 --- a/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs +++ b/OpenGridServices/OpenGrid.Framework.Data.MySQL/MySQLInventoryData.cs @@ -194,7 +194,10 @@ namespace OpenGrid.Framework.Data.MySQL public void addInventoryItem(InventoryItemBase item) { - + lock (database) + { + database.insertItem(item); + } } public void updateInventoryItem(InventoryItemBase item) @@ -204,7 +207,10 @@ namespace OpenGrid.Framework.Data.MySQL public void addInventoryFolder(InventoryFolderBase folder) { - + lock (database) + { + database.insertFolder(folder); + } } public void updateInventoryFolder(InventoryFolderBase folder) -- cgit v1.1