CreateIf.OdooSharp.Configuration
0.0.18
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Standard 2.1
This package targets .NET Standard 2.1. The package is compatible with this framework or higher.
dotnet add package CreateIf.OdooSharp.Configuration --version 0.0.18
NuGet\Install-Package CreateIf.OdooSharp.Configuration -Version 0.0.18
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CreateIf.OdooSharp.Configuration" Version="0.0.18" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CreateIf.OdooSharp.Configuration" Version="0.0.18" />
<PackageReference Include="CreateIf.OdooSharp.Configuration" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CreateIf.OdooSharp.Configuration --version 0.0.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CreateIf.OdooSharp.Configuration, 0.0.18"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=CreateIf.OdooSharp.Configuration&version=0.0.18
#tool nuget:?package=CreateIf.OdooSharp.Configuration&version=0.0.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
OdooSharp JSON-RPC C# ORM Client
A type-safe, extensible C# client for interacting with the Odoo JSON-RPC API.
Supports full CRUD, filtering, paging, and model-level attributes for clean data access.
๐ Features
- ๐ Auth via JSON-RPC (
/web/session/authenticate
) - ๐ Generic
search_read
with domain, fields, paging, sorting - ๐
create
, โ๏ธwrite
, ๐๏ธunlink
, ๐ฅread
(by ID) - ๐ง Model-level
[OdooModel(...)]
attribute for smart mapping - ๐ Paged queries
- โ
Typed response classes via
System.Text.Json
๐ฆ Installation
Just include the nuget package CreateIf.Odoo
and your typed model classes into your project.
Requires .netstandard2.1 or compatible with HttpClient
, System.Text.Json
.
๐ ๏ธ Configuration
var options = new OdooClientOptions
{
Url = "https://your-odoo-instance.odoo.com",
Database = "your-database-name",
Username = "your-user@example.com",
Password = "your-password"
};
var client = new OdooClient(options);
๐งช Usage
var client = new OdooClient(new OdooClientOptions
{
Url = "https://your-odoo-url.odoo.com",
Database = "your-db",
Username = "you@example.com",
Password = "your-password"
});
if (await client.AuthenticateAsync())
{
Console.WriteLine("Authenticated.");
var models = await client.GetModelsAsync();
// you can use your custom defined models too
var quotes = await client.SearchReadAsync<Lieferangebot>(
model: "x_lieferangebot",
domain: new object[] { new object[] { "x_status", "=", "offen" } },
fields: new[] { "x_name", "x_preis", "x_status" },
limit: 100
);
}
else
{
Console.WriteLine("Authentication failed.");
}
The custom model class
[OdooModel("x_lieferangebot", "[[\"x_status\", \"=\", \"offen\"]]")]
public class Lieferangebot
{
[JsonPropertyName("id")]
public int Id { get; set; }
[JsonPropertyName("x_name")]
public string Name { get; set; }
[JsonPropertyName("x_preis")]
public float Preis { get; set; }
[JsonPropertyName("x_status")]
public string Status { get; set; }
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.1
- System.Text.Json (>= 8.0.5)
-
net8.0
- System.Text.Json (>= 8.0.5)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on CreateIf.OdooSharp.Configuration:
Package | Downloads |
---|---|
CreateIf.OdooSharp
A simple and easy Odoo RPC client. |
|
CreateIf.OdooSharp.Models
Base Odoo Model classes. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.0.18 | 168 | 4/25/2025 |
0.0.17 | 178 | 4/25/2025 |
0.0.16 | 203 | 4/24/2025 |
0.0.15 | 259 | 4/16/2025 |
0.0.14 | 237 | 4/16/2025 |
0.0.13 | 183 | 4/12/2025 |
0.0.12 | 181 | 4/11/2025 |
0.0.11 | 158 | 4/11/2025 |
0.0.10 | 182 | 4/11/2025 |
0.0.9 | 172 | 4/11/2025 |
0.0.8 | 187 | 4/11/2025 |
0.0.7 | 203 | 4/11/2025 |
0.0.6 | 162 | 4/11/2025 |
0.0.5 | 184 | 4/11/2025 |
0.0.4 | 197 | 4/10/2025 |