Skip to content

guillaumesp/EfCore-IQueryableExtensions-ToSql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

EfCore-IQueryableExtensions-ToSql

EfCore 2.1 Preview IQueryableExtensions

Accessing SQL from Entity Framework Core Queries

Based on Ricardo Peres work

Usage

// Build a query using Entity Framework
var query = _context.Widgets.Where(w => w.IsReal && w.Id == 42);  
// Get the generated SQL
var sql = query.ToSql();

Releases

No releases published

Packages

No packages published

Languages