Dapper.FastCrud 1.1.0

Fast Dapper CRUD extensions added to the IDbConnection for convenience and a less error prone experience. This library is 2x faster than Dapper.SimpleCRUD.
For Dapper constructs in general, it is recommended to use Visual Studio 2015 for features such as nameof and string interpolation but that's not a requirement.

The package contains .NET 4.5 and 4.6 DLLs, one of which will be installed based on the target framework in your project.
For .NET 4.5, the code contains the polyfills for the missing FormattableString class, which is required when targetting that framework version and using string interpolation with the C# 6 compiler in VS 2015.

- Support for LocalDb, Ms Sql Server, MySql, SqLite
- Entities having composite primary keys are supported
- All the CRUD methods accept a transaction and a command timeout
- Fast pre-computed entity queries
- A generic T4 template is also provided for convenience. Entity domain partitioning and generation can be achieved via separate template configurations.
Existing POCO entities are also supported which can be decorated with attributes such as Table, Key and DatabaseGenerated.
Column name overrides are not supported and not recommended. As you'll end up writing more complex SQL queries, outside of the domain of this library, you'll want to use the nameof operator as much as possible.

Examples of usage:
- DapperExtensions.Dialect = SqlDialect.MsSql|MySql|SqLite
- dbConnection.Insert(newEntity);
- dbConnection.Get()
- dbConnection.Get(new Entity() {Id = 10});
- dbConnection.Update(updatedEntity);
- dbConnection.Delete(entity)
- dbConnection.GetTableName<Entity>()
- dbConnection.Find<Entity>(
     orderClause:$"{nameof(Entity.LastName)} DESC",
     skipRowsCount:10, limitRowsCount:20,
     queryParameters: new {FirstNameParam: "John"});

     This is where the power of the C# 6 compiler comes into play, and leaves no chance to mistypings or to problems arising from db entity refactorings.
     More details and benchmarks are available on the project site.

There is a newer version of this package available.
See the version list below for details.
Install-Package Dapper.FastCrud -Version 1.1.0
dotnet add package Dapper.FastCrud --version 1.1.0
<PackageReference Include="Dapper.FastCrud" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Dapper.FastCrud --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

Added support for MySql and SqLite (please use DapperExtensions.Dialect = SqlDialect.*).
Entities that have primary keys not auto-generated by the DB are now supported.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated 199,307 4/19/2018
2.4.1 118,372 10/27/2016
2.4.0 5,773 9/21/2016
2.3.2 6,973 2/9/2016
2.3.0 1,050 1/2/2016
2.2.0 1,040 12/8/2015
2.1.2 1,026 10/30/2015
2.1.0 922 9/18/2015
2.0.0 1,045 6/1/2015
1.1.1 615 5/21/2015
1.1.0 627 5/21/2015
1.0.2 1,087 5/18/2015
1.0.1 720 5/16/2015
1.0.0 656 5/16/2015
Show less