fm.EntityFrameworkCore.Relational 2.4.0

Extends Microsoft.EntityFrameworkCore.Relational with some raw SQL methods. Directly invoke ExecuteScalar/ExecuteReader on DbContext. Bulk update and delete rows.

Commonly used Types:
DbContextExtensions
DbSetBulkExtensions
RelationalDatabaseFacadeExtensions

Commonly used methods:
ClearCommandTimeout()
ExecuteScalarAsync(string sql)
ExecuteScalarAsync(string sql, IEnumerable<object> parameters)
ExecuteReaderAsync(string sql)
ExecuteReaderAsync(string sql, IEnumerable<object> parameters)

SqlDeleteWhereAsync(string propertyName, object equalsValue)
SqlUpdateWhereAsync(string wherePropertyName, object whereValue, string setPropertyName, object setValue)
SqlUpdateWhereInAsync(string whereInPropertyName, object[] whereInValues, string setPropertyName, object setValue)
SqlUpdateWhereInAsync(string wherePropertyName, object whereValue, string whereInPropertyName, object[] whereInValues, string setPropertyName, object setValue)

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

Release Notes

Added DbSetBulkExtensions with .SqlDeleteWhereAsync(...) .SqlUpdateWhereAsync(...) .SqlUpdateWhereInAsync(...)

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.0.0-rc.1 19 10/22/2019
2.4.0 152 9/4/2019
2.4.0-preview.1 68 5/7/2019
2.3.0 821 12/19/2018
2.2.0 227 10/19/2018
2.0.0 2,347 9/1/2017
1.0.1 623 7/22/2016