OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase Cloud OceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog Service
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Connector/NET

V1.1.0
  • What Is OceanBase Connector/NET
    • Introduction
  • Install and Connect
    • Installation process
    • Test the connection
    • Package reference and usage
    • Compatibility impact
  • User Guide
    • Quick Start
      • Complete example
    • Connection Strings and Data Source
      • Connection strings
    • Data Types
      • Overview of data types
    • Command and Parameter
      • Overview
    • Result Set
      • Supported result set types
    • ORM and Frameworks
      • Use Entity Framework Core
      • Use SqlSugar
      • Use FreeSql
  • Reference Information
    • Common Interfaces
      • Overview of commonly used interfaces
  • Version Release Records
    • OceanBase Connector/NET V1.0.0
    • OceanBase Connector/NET V1.1.0

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Connector/NET
  3. V1.1.0

Package reference and usage

Last Updated:2026-09-04 08:24:51

Reference the package by using NuGet
Use a local package source
Method 1: Specify the package source by using the command line (Recommended)
Method 2: Configure nuget.config

You can reference the NuGet package of OceanBase Connector/NET in the following two ways:

Reference the package by using NuGet

If the package is available in the default NuGet source, you can directly add a package reference to the project file (.csproj):

<ItemGroup>
  <PackageReference Include="OceanBase.ManagedDataAccess" Version="1.1.0" />
</ItemGroup>

Use a local package source

The NuGet package built locally cannot be located by default. You need to configure a local package source.

Method 1: Specify the package source by using the command line (Recommended)

When you run the dotnet add command, specify the directory where the package is located by using the --source option:

dotnet add <your project.csproj> package OceanBase.ManagedDataAccess --version 1.1.0 --source "<package repository>" --source "https://api.nuget.org/v3/index.json"

Note

If you use the official NuGet source, retain --source "https://api.nuget.org/v3/index.json".

Method 2: Configure nuget.config

Create a nuget.config file in the project directory and add the local package source:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="local-oceanbase" value="<package path>/packages" />
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
  </packageSources>
</configuration>

After the configuration is completed, you can add a package reference to the project to resolve the package from the local source.

Previous topic

Test the connection
Last

Next topic

Compatibility impact
Next
on this page
Reference the package by using NuGet
Use a local package source
Method 1: Specify the package source by using the command line (Recommended)
Method 2: Configure nuget.config