Documentation Index
Fetch the complete documentation index at: https://docs.oxla.com/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Dapper is a simple object-relational mapper (ORM) for .NET. It provides an easy and efficient way to query databases with minimal setup and overhead, leveraging SQL directly while mapping results to C# objects. This page describes how to use Dapper with Npgsql (a PostgreSQL data provider for .NET) to connect to Oxla.Establishing connection
There are two ways that can be utilised in order to establish a connection through Npgsql:- Npgsql’s DataSource Class
- Creating Connection Directly
Example Usage
This example shows basic query execution for the following C# class, once the connection has been established:Unsupported Functions & Structures
Here you can find a list of functions and potentially related structures, that we either do not support at all or they work incorrectly when combining Oxla and Dapper-Npgsql:connection.Execute- returns improper number of rows forDELETE,UPDATE,INSERT INTO ... (SELECT)andCOPYstatementsconnection.BeginTransaction- TransactionsCommandType.StoredProcedure- Stored Procedures- Function in/out parameters