INSTALL AND SETUP
-----------------

To install and run the Demo Application
1. Run the dotnetdemo_c.sql to create the dotnet_demodb database. 
2. Set environment variable IFXDEMO_DIR to the directory the demos are run from (for example, <CSDK installation dir>\demo\dotnetdemo\samples) 
    
3. Edit the democonfig.xml file to supply the following info: 
    - connectivity information about the IDS server and database

    - The type of data loading you want, for example you might be running against an IDS 9.x server or 7.x server.
      If you are running against a 9.x server and you specify 7 here , the demo data loaded will be the one for 7.x
    	 
    - The root location of your demo

    - The name of the demo data file. This should just be the original name in the supplied democonfig file.

4. Launch the solution DOTNETDEMO.sln into the VS.NET 2003 IDE. This has been built using Visual Studio.NET 2003 & it utilizes the 
   .NET 1.1 Framework.
   If you are using Visual Studio.NET 2005, launch dotnetdemo-vs2005.sln instead.

Building the Application
------------------------
Open the solution $IFXDEMO_DIR\DOTNETDEMO.sln in Visual Studio .NET 2003 IDE.
If you are using Visual Studio .NET 2005 open the solution $IFXDEMO_DIR\dotnetdemo-vs2005.sln .

There will be three projects opened under this solution.
DemoUtils
ConsoleDemo
CSSamples

If you are using VS 2005 IDE the following three projects will be opened under this solution.
demoutils-vs2005
consoledemo-vs2005
cssamples-vs2005

DemoUtils is a common library used by the projects ConsoleDemo and CSSamples.
If you are using VS2005 demoutils-vs2005 is a common library used by the projects consoledemo-vs2005 and cssamples-vs2005.

Compile DemoUtil first, that will create DemoUtils.dll.
if you are using VS 2005 compile demoutil-vs2005 first, that will create Demoutils.dll.
The physical location of the DemoUtils.dll will depend on the debug flag you set.
$IFXDEMO_DIR\bin\Debug\DemoUtils.dll     (If debug flag is ON)
$IFXDEMO_DIR\bin\Release\DemoUtils.dll   (If debug flag is OFF)
Then the reference to the DemoUtils.dll need to be added to the projects ConsoleDemo and CSSamples. 
To add as a reference, right click on 'References' under each project node. This shall bring the references dialog box. Click on 'Browse'
and browse to the folder where there is DemoUtils.dll (as indicated above). Select DemoUtils.dll and click on OK.
 
Select 'build solution' from the build menu of the VS IDE to compile all projects.


RUNNING THE APPLICATION
-----------------------

The Dotnet demo solution conists of three projects : ConsoleDemo, CSSamples and DemoUtils. The best way to run these 
is through the IDE. The ConsoleDemo and the CSSamples project are runnable exectubles. DemoUtils is a library.
Build the solution by choosing the "Rebuild Solution" item under the Build menu.

In order to run ConsoleDemo right click on the project in the solution explorer and choose this project as the 
startup project. The console demo takes the following command line arguments:

If you are using VS 2005 follow this: In order to run ConsoleDemo-vs2005 right click on the project in the solution explorer and choose this project as the 
startup project. The console demo takes the following command line arguments:

[query] [insert] [catalog] | [all]
query - Runs queries against an IDS database.
insert - runs an insert command against an IDS database.
catalog - runs CatalogDemo to retrieve catlog info.
all - runs all the above demos.

The CSSamples project is a more detailed demo that has a User Interface. To run this example, right click the CSSamples project under the solution explorer and choose this as the startup project. Start the program by choosing the appropriate run mechanism from the Debug menu (with or without debugging). 
If you are using VS 2005:The cssamples-vs2005 project is a more detailed demo that has a User Interface. To run this example, right click the cssamples-vs2005 project under the solution explorer and choose this as the startup project. Start the program by choosing the appropriate run mechanism from the Debug menu (with or without debugging). 

This example demonstrates an order entry application that utilizes the DataSet and GBasedbt .NET Provider classes for queries,updates and inserts. The main classes are a set of Form objects that use an IfxDemo instance (from the DemoUtils project) to query, update and insert into an IDS database. 
If your IDE settings are set to the demo solution's defaults, code may be arranged in code regions. Expand the 
regions to see the code for that region.

The DemoUtils class is a set of utility functions that read the config and data files and build the database content.

SYSTEM CONFIGURATION USED FOR THE DEMO
--------------------------------------

The following setup was used to build and test the demo :
Windows XP
Visual Studio.NET 
GBasedbt .NET Provider
IDS 11 on Windows XP 













