Open Source RDBMS - Seamless, Scalable, Stable and Free

English | Login |Register

CUBRID ADO.NET Driver Installation Guide


Prerequisites

Before you start to developing .NET applications with CUBRID, you will need the CUBRID ADO.NET Data provider library (Cubrid.Data.dll). You have the options to:

  1. Download the compiled library, along with other files(for example, the help file) from: https://sourceforge.net/projects/cubrid/files/CUBRID-Drivers/ADO.NET_Driver/9.1.0/
  2. Compile it yourself from the source code; checkout the code from the SourceForge SVN repository the folder: http://svn.cubrid.org/cubridapis/adodotnet/branches/RB-9.1.0/
  3. Use the CUBRID ADO.NET Data provider Installer. This is the easiest and the recommended way to get the driver installed on your machine. The installer can be downloaded from here:  Installer

You will also need:

 

 

The CUBRID .NET Provider is 100% full-managed .NET code, and it does not rely on any CUBRID library files. This means that the usage of the driver does not require any kind of CUBRID installation or files on the local machine.

For compiling and running the CUBRID ADO.NET Tutorials, you can use Microsoft Visual C# Express edition – download it from: http://www.microsoft.com/visualstudio/eng/downloads.

Installation & Configuration

If you don't want any complications, you can install the driver by using the official Installer. Make sure that you run the installer with administrator rights.

If you choose to install using the default options (x86), the driver will be installed into this folder: C:\Program Files\CUBRID\CUBRID ADO.NET Data Provider 9.1.0.

You can also install it by yourself. Just choose the files you need and copy them to your computer, in a folder location of your choice.

Once the driver is installed, you will need to do two more things:

  • Reference the driver library from your projects (Right click on References, choose Add Reference and select the dll file found by default at C:\Program Files\CUBRID\CUBRID ADO.NET Data Provider 9.1.0\Cubrid.Data.dll):
    Driver_Library_Reference.png
  • Import the required namespaces:
    Required_Namespaces.png 

Remember, you can always choose to install the driver into GAC 

(http://en.wikipedia.org/wiki/Global_Assembly_Cache).

The best way to install the driver library in GAC is to use the tblimp tool 

(http://msdn.microsoft.com/en-us/library/tt0cf3sx%28v=vs.80%29.aspx) and to execute:

tlbimp.exe file.dll /out:Cubrid.Data.dll /keyfile:CUBRID.snk
comments powered by Disqus
문서 정보
viewed 8507 times
번역 en
작성자
posted 3년 전
CUBRID
공헌자
마지막 수정시간 작년
변경 내역 보기
Share this article