ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery 7.0.0-preview1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
This is a prerelease version of ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery.

Requires NuGet 5.0 or higher.

dotnet add package ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery --version 7.0.0-preview1
NuGet\Install-Package ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery -Version 7.0.0-preview1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery" Version="7.0.0-preview1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery --version 7.0.0-preview1
#r "nuget: ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery, 7.0.0-preview1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery as a Cake Addin
#addin nuget:?package=ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery&version=7.0.0-preview1&prerelease

// Install ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery as a Cake Tool
#tool nuget:?package=ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery&version=7.0.0-preview1&prerelease

Materialize abritary classes from EF Core using raw SQL

Nuget

Provides the SqlQueryAsync<T> method to help you populate arbitrary classes from a raw SQL query.

Sample usage

var context = new ChinookContext();

var result = await context.SqlQueryAsync<MyDto>("SELECT * FROM MyTable");

Feedback

Please report any issues, questions and suggestions here

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on ErikEJ.EntityFrameworkCore.SqlServer.SqlQuery:

Repository Stars
ErikEJ/EFCorePowerTools
Entity Framework Core Power Tools - reverse engineering, migrations and model visualization in Visual Studio & CLI
Version Downloads Last updated
7.0.0-preview1 3,472 10/13/2022
6.0.0-preview1 24,034 11/13/2021
5.0.0-preview1 2,152 7/14/2021
5.0.0-alpha2 242 5/30/2021
5.0.0-alpha1 195 5/13/2021

Initial preview