This example is a simple inventory management system which uses the C# interface to Berkeley DB. It supports adding, changing, and removing inventory items as well as managing and analyzing sales records.
The source files for this application will be put into the directory "<install_dir>/src" after installation.
For more details, please refer to the demo video and the slide deck posted with this installation package.



The way to install this application:

1. Before the installation, please make sure you have installed "Microsoft .NET Framework 2.0" or greater on your system.
2. Please select the right .msi file and start the installation by double-clicking it.
There are two corresponding .msi files provided for 32-bit OS and 64-bit OS. The file in the directory x86 is for 32-bit OS and the file in the directory x64 is for 64-bit OS.
3. Finish the installation according to the following instructions.
You can change the installation location at the step "Select Installation Folder".

When you finish the installation, there will be a shortcut named "InventoryManagementSystem" created on your desktop.

You can uninstall this application by double-clicking the .msi file again and choose "Remove InventoryManagementSystem" or you can uninstall it directly from the control panel.



The way to launch this application:

The application can be launched by double-clicking the shortcut named "InventoryManagementSystem".

After the application is launched, there will be a directory named "IMS_Home" created on your desktop. This directory contains all the data files and log files used to store or recover your data.



The way to debug this application with Visual Studio 2008 or greater:

1. Download the package of Berkeley DB named "db-6.x.xx.zip" and unzip it.
2. Open the solution BDB_dotNet and update some projects if needed.
For Visual Studio 2008, please click "File->Open->Project/Solution..." and select BDB_dotNet.sln under "db-6.x.xx\build_windows".
For Visual Studio 2010 or greater, please click "File->Open->Project/Solution..." and select BDB_dotNet_vs2010.sln under "db-6.x.xx\build_windows".
3. Select the right solution platform and build the whole solution.
Please select "x64" as the solution platform if you are using a 64-bit OS.
Please select "Win32" as the solution platform if you are using a 32-bit OS.
(Note: it is important to select the right solution platform so that the application will find the right dll files later.)
4. Copy the whole directory src from the installation directory of InventoryManagementSystem to "db-6.x.xx\build_windows" and rename the directory src with "InventoryManagementSystem".
5. Right-click the solution BDB_dotNet and click "Add->Existing Project...", then select InventoryManagementSystem.csproj under "db-6.x.xx\build_windows\InventoryManagementSystem".
6. Right-click References under the project InventoryManagementSystem in the Solution Explorer and select "Add Reference...". Then select tab "Projects" in the new form, choose db_dotnet and click OK.
7. Build and debug the project.
