RISE to Bloome Software
Log In    
Home
RISE
Expand RISERISE
Marshal
Download
 
 
r2bsoftware.se r2bsoftware.se
 
 
 
Click to hide navigation tree
c# for odbc code generator
The c# for odbc code generator creates one database access class and one web service for each interface in the model. Each class/webservice is place in a separate file. The generated ODBC code works with any database generated using RISE, i.e. it works for SQL Server as well as MySQL.
 
You can either include the database access classes directly in your application or you can create a web service application and access your database through it. To use the web services you must specify a connection string in the web.config file, see connection string for further details.
 
The database access classes are stored in files named <model prefix>.DB.<interface name>.cs each containing a single namespace, <model prefix>.DB.<interface name>, with a single class named as the interface. This class implements all method defined in the interface. The namespace also defines a return structure for each method having a non-trivial, scalar, return value such as Get methods and List methods.
 
The web service is implemented in files named <model prefix>.WS.<interface name>.asmx.cs each containing a single namespace, <model prefix>.WS.<interface name>, with a single class named as the interface. This class is derived from .NET web service base class and acts as a wrapper for methods in the corresponding persistent class.
 
This code generator is available for the RISE Server and can be used to generate directly available web services for your information model.