RepoDb 1.1.4
Prefix ReservedSee the version list below for details.
dotnet add package RepoDb --version 1.1.4
NuGet\Install-Package RepoDb -Version 1.1.4
<PackageReference Include="RepoDb" Version="1.1.4" />
paket add RepoDb --version 1.1.4
#r "nuget: RepoDb, 1.1.4"
// Install RepoDb as a Cake Addin
#addin nuget:?package=RepoDb&version=1.1.4
// Install RepoDb as a Cake Tool
#tool nuget:?package=RepoDb&version=1.1.4
Why RepoDb
- Only 30 seconds to Setup.
- Massive ORM Operation supports.
- Seriously fast because of IL.
- Less Code and Fluent.
- Unique and Developer Friendly Expression Tree.
Documentation
Click here for the complete documentation.
Snippets
Write less optimal codes.
public class Customer
{
public int Id { get; set; }
public string Name {get; set; }
public CreatedDate { get; set; }
}
Create Shared-Repository via DbRepository:
public class NorthwindDbRepository : DbRepository<SqlConnection>(@"Server=.;Database=Northwind;Integrated Security=SSPI;")
{
}
Create Shared-Repository via BaseRepository:
public class CustomerRepository : BaseRepository<Customer, SqlConnection>(@"Server=.;Database=Northwind;Integrated Security=SSPI;")
{
}
Query Operation:
var repository = new CustomerRepository();
var customer = repository.Query(new { Id = 10045 });
Insert Operation:
var repository = new CustomerRepository();
var customerId = repository.Insert(new Customer
{
Name = "Anna Fullerton",
CreatedDate = DateTime.UtcNow
});
Update Operation:
var repository = new CustomerRepository();
var customer = repository.Query(new { Id = 10045 });
customer.Name = "Anna Fullerton";
customer.UpdateDate = DateTime.UtcNow;
var affectedRows = repository.Update(customer);
Inline Operation:
var repository = new CustomerRepository();
var affectedRows = repository.InlineUpdate(new
{
Name = "Anna Fullerton", UpdatedDate = DateTime.UtcNow
},
new { Id = 10045 };
Delete Operation:
var repository = new CustomerRepository();
var affectedRows = repository.Update(new { Id = 10045 };
Merge Operation:
var repository = new CustomerRepository();
var customer = repository.Query(new { Id = 10045 });
customer.Name = "Anna Albert Fullerton";
var affectedRows = repository.Merge(customer,
Field.Parse(new { customer.Id } ));
And many more...
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages (17)
Showing the top 5 NuGet packages that depend on RepoDb:
Package | Downloads |
---|---|
RepoDb.SqlServer
A hybrid .NET ORM library for SQL Server. |
|
RepoDb.SqlServer.BulkOperations
An extension library that contains the official Bulk Operations of RepoDb for SQL Server. |
|
RepoDb.PostgreSql
A hybrid .NET ORM library for PostgreSQL. |
|
RepoDb.MySql
A hybrid .NET ORM library for MySQL (using MySql.Data). |
|
RepoDb.PostgreSql.BulkOperations
An extension library that contains the official Bulk Operations of RepoDb for PostgreSQL. |
GitHub repositories (6)
Showing the top 5 popular GitHub repositories that depend on RepoDb:
Repository | Stars |
---|---|
mikependon/RepoDB
A hybrid ORM library for .NET.
|
|
itlibrium/DDD-starter-dotnet
Sample implementation and comparison of various approaches to building DDD applications. Useful as a baseline to quickly start a DDD dot net project.
|
|
TortugaResearch/DotNet-ORM-Cookbook
This repository is meant to show how to perform common tasks using C# with variety of ORMs.
|
|
bcssov/IronyModManager
Mod Manager for Paradox Games. Official Discord: https://discord.gg/t9JmY8KFrV
|
|
FransBouma/RawDataAccessBencher
Bench code which tests entity materialization speed of various .NET data access / ORM implementations
|
Version | Downloads | Last updated |
---|---|---|
1.13.2-alpha1 | 658 | 2/26/2024 |
1.13.1 | 138,715 | 3/16/2023 |
1.13.0 | 71,176 | 11/2/2022 |
1.12.10 | 306,973 | 2/18/2022 |
1.12.9 | 30,676 | 9/27/2021 |
1.12.8 | 82,553 | 9/23/2021 |
1.12.7 | 169,557 | 2/6/2021 |
1.12.6 | 4,628 | 1/13/2021 |
1.12.5 | 9,698 | 12/30/2020 |
1.12.4 | 68,774 | 10/3/2020 |
1.12.3 | 3,103 | 9/29/2020 |
1.12.2 | 1,326 | 9/28/2020 |
1.12.1 | 1,387 | 9/25/2020 |
1.12.0 | 4,430 | 9/24/2020 |
1.3.2-alpha1 | 295 | 2/26/2024 |
- Built on a lower target framework 4.0 for earlier compatibility.
- Solution clean-up, removed interfaces that is not unnecessary for extensions.
- Updated the caching by adding the expiration feature in the CacheItem.
- Next release is to support the .Net Core.