I have researched this and always found examples like this:
var blogs = context.Blogs
.FromSql("SELECT * FROM dbo.Blogs")
The problem is, I don’t want to run my raw SQL on the Blogs table. Basically, I want to implement an interface like this:
Is there a way to do that with DbContext?