Raw SQL Query without DbSet – Entity Framework Core

With Entity Framework Core removing dbData.Database.SqlQuery<SomeModel> I can’t find a solution to build a raw SQL Query for my full-text search query that will return the tables data and also the rank.

The only method I’ve seen to build a raw SQL query in Entity Framework Core is via dbData.Product.FromSql("SQL SCRIPT"); which isn’t useful as I have no DbSet that will map the rank I return in the query.

Any Ideas???

21 Answers
21

Leave a Comment