Skip to main content
.NETFramework4.8net8.0net9.0net10.0.NETStandard2.0

A hybrid .NET ORM library for SQL Server.

Published
Dec 22, 2025
10mo ago
Total Downloads
41.5K
41,502

Install

dotnet add package AmpScm.RepoDb.SqlServer --version 1.15.2512.22350
ProductVersions
.NET
net10.0net8.0net9.0
.NET Standard
netstandard2.0
Other
.NETFramework4.8

README

MSBuild-CI Version GitterChat

RepoDb.SqlServer - a hybrid .NET ORM library for SQL Server.

RepoDB is an open-source .NET ORM library that bridges the gaps of micro-ORMs and full-ORMs. It helps you simplify the switch-over of when to use the BASIC and ADVANCE operations during the development.

Important Pages

  • GitHub Home Page - to learn more about the core library.
  • Website - docs, features, classes, references, releases and blogs.

Community Engagements

Dependencies

License

Apache-2.0


Installation

At the Package Manager Console, write the command below.

> Install-Package AmpScm.RepoDb.SqlServer

Or, visit our installation page for more information.

Get Started

First, RepoDB must be configured and SqlServer support loaded.

GlobalConfiguration.Setup().UseSqlServer();

Note: The call must be done once.

After the bootstrap initialization, any library operation can then be called.

Or, visit the official get-started page for SQL Server.

Query

using (var connection = new SqlConnection(ConnectionString))
{
	var customer = connection.Query<Customer>(c => c.Id == 10045);
}

Insert

var customer = new Customer
{
	FirstName = "John",
	LastName = "Doe",
	IsActive = true
};
using (var connection = new SqlConnection(ConnectionString))
{
	var id = connection.Insert<Customer>(customer);
}

Update

using (var connection = new SqlConnection(ConnectionString))
{
	var customer = connection.Query<Customer>(10045);
	customer.FirstName = "John";
	customer.LastUpdatedUtc = DateTime.UtcNow;
	var affectedRows = connection.Update<Customer>(customer);
}

Delete

using (var connection = new SqlConnection(ConnectionString))
{
	var customer = connection.Query<Customer>(10045);
	var deletedCount = connection.Delete<Customer>(customer);
}

Changes from Previous Version

v1.14.2508.12328v1.15.2512.22350
Added Frameworks
net10.0.NETStandard2.0
Added Dependencies
System.Data.Common(.NETFramework4.8)
AmpScm.RepoDb(net10.0)
AmpScm.RepoDb(.NETStandard2.0)
Microsoft.Data.SqlClient(.NETStandard2.0)
Microsoft.Bcl.HashCode(.NETStandard2.0)
System.Memory(.NETStandard2.0)

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 5 target frameworks; confirm the exact target used by your application.The published metadata declares 23 direct dependency entries across framework groups. Inspect the resolved dependency graph for your target framework.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.