0
I think that the limitation in 2.0 where the return must be a type of an entity. You can try use SqlCLient, here is an example https://blog.bitscry.com/2017/09/14/sql-stored-procedure-in-net-core/ .
Or Create a new Entity that match the return from the Stored Procedure, I haven't try this before, but I think it should work. Example.
- var books = context.YourCustomEntityForSp
- .FromSql("EXEC GetBooksByAuthor @AuthorId" , authorId)
- .ToList();