Description
Dapper.MicroCRUD is a small and fast Dapper.Net extension library to perform CRUD statement with POCO models.
Dapper.MicroCRUD alternatives and similar packages
Based on the "ORM" category.
Alternatively, view Dapper.MicroCRUD alternatives based on common mentions on social networks and blogs.
-
TypeORM
Data-Mapper ORM for TypeScript and JavaScript (ES7, ES6, ES5). Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, WebSQL databases. Works in Node.js and Browser. -
Entity Framework
Object-relational mapper that enables .NET developers to work with relational data using domain-specific objects -
FreeSql
FreeSql is the ORM in .NetCore, .NetFramework, And Xamarin. It supports Mysql, Postgresql, SqlServer, Oracle, Sqlite, Odbc, 达梦, And MsAccess. -
Fluent NHibernate
Fluent, XML-less, compile safe, automated, convention-based mappings for NHibernate. -
LINQ to DB
The fastest LINQ database access library offering a simple, light, fast, and type-safe layer between your POCO objects and your database. -
Dapper Extensions
Small library that complements Dapper by adding basic CRUD operations (Get, Insert, Update, Delete) for your POCOs -
Entity Framework 6
Object-relational mapper that enables .NET developers to work with relational data using domain-specific objects -
NPoco
Simple microORM that maps the results of a query onto a POCO object. Based on Schotime's branch of PetaPoco -
SmartSql
SmartSql = MyBatis + Cache(Memory | Redis)+ ZooKeeper + R / W Splitting + Dynamic Repository .... -
MicroOrm.Dapper.Repositories
Repository for CRUD operations -
SQLProvider
A general F# SQL database erasing type provider, supporting LINQ queries, schema exploration, individuals, CRUD operations and much more besides. -
MongoDB Repository pattern implementation
Repository abstraction layer on top of Official MongoDB C# driver -
DbExtensions
Data-access framework with a strong focus on query composition, granularity and code aesthetics. -
JsonFlatFileDataStore
Simple JSON flat file data store with support for typed and dynamic data. -
NReco.Data
Lightweight provider-independent DAL for .NET Core: abstract query, SQL command builder, CRUD operations, object mapping.. -
MongoFramework
An "Entity Framework"-like interface for MongoDB -
MicroLite ORM
MicroLite ORM is a micro Object Relational Mapper for the .NET framework. It is designed to be easy to use, extensible and testable. -
Linq.Expression.Optimizer
System.Linq.Expression expressions optimizer. -
EntityFramework.DatabaseMigrator
EntityFramework.DatabaseMigrator is a WinForms utility to help manage Entity Framework 6.0+ migrations. -
Excel2SqlServer
Library for importing Excel spreadsheets into SQL Server tables -
LLBLGen Pro
Entity Modeling solution for Entity Framework, NHibernate, Linq to SQL and its own ORM framework: LLBLGen Pro Runtime Framework. [$][Free Lite version] -
Entity Framework Core
Object-relational mapper that enables .NET developers to work with relational data using domain-specific objects
Pixel-Perfect Multi-Platform Applications with C# and XAML
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of Dapper.MicroCRUD or a related project?
README
PeregrineDb - Lightweight CRUD Extensions for Dapper.Net
PeregrineDb is a small and fast Dapper.Net extension library to perform CRUD statement with POCO models.
Project aims
- Provide fast and lightweight CRUD extensions for Dapper
- Should be able to run against multiple different databases in the same project
- Thread safety should be guarenteed
I was using the fantastic Dapper.SimpleCRUD library and found it incredibly easy to use. However, two things drove me to write this library - I have a project which uses SqlServer and Postgres databases side-by-side, and unfortunately Dapper.SimpleCRUD does not support this. Second, I found it was missing a few crucial optimizations which was doubling the time taken to easily insert many rows.
DBMS Support
Currently, the following DBMS are supported. More will be added (e.g. SQLite) when there is demand for them:
- Microsoft SqlServer 2012 and above
- PostgreSQL
Features
- Getting Started
- CRUD Methods
- Creating: Insert one or many entities, with or without generating a primary key.
- Counting: Count how many entities match some conditions
- Reading an Entity: Many overloads for searching for a single entity.
- Reading many Entities: Search for any number of entities matching arbitrary conditions. Includes pagination.
- Updating: Update one or many entities, matched on primary key
- Deleting: Delete one, many or all entities
- [Testing your code](Test-helpers)
- DataWiper
- Contributing
Don't forget, for practical examples of usage, you can also browse our extensive [unit tests suite](tests/PeregrineDb.Tests).
Comparison
NB: These may not be correct nor up-to-date. I made this comparison very quickly
Library | Operations | Composite Keys | Async | .Net Core | Notes |
---|---|---|---|---|---|
PeregrineDb | CountFind/GetGet(Range/All)GetPageInsert(Range)Update(Range)Delete(Range/All) | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | Can work across multiple DBMS in same projectThrows exceptions for inconsistencies (E.g. Update not affected anything) |
Dapper.Contrib | GetGetAllInsertUpdateDelete(All) | :heavy_check_mark: | :heavy_check_mark: | Can use interfaces to track changes | |
Dapper.Extensions | GetInsertUpdateDeleteGetListGetPage/GetSetCount | :heavy_check_mark: | Can use simple lambdas and predicatesGenerates GUID keysCan be configured without attributes | ||
Dapper.FastCRUD | InsertGetFind(Equivalent to GetRange)(Bulk)Update(Bulk)DeleteCount | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | Has a nice fluent syntax for complex WHERE operationsCan be configured without attributes |
Dapper.SimpleCRUD | GetGetListGetListPagedInsertUpdateDelete(List)RecordCount | :heavy_check_mark: | Can create WHERE clauses from objectsGenerates GUID keys |
Installation
Simply add the nuget package PeregrineDb to your project.
Licensing and Attribution
This project can be used and distributed under the [MIT License](LICENSE).
Please read [Notice](NOTICE.md) for licenses of other projects used by or inspirations of this projects.
*Note that all licence references and agreements mentioned in the Dapper.MicroCRUD README section above
are relevant to that project's source code only.