Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SqlQuery missing from EF7... please add #4429

Closed
giancarloa opened this issue Jan 29, 2016 · 3 comments
Closed

SqlQuery missing from EF7... please add #4429

giancarloa opened this issue Jan 29, 2016 · 3 comments

Comments

@giancarloa
Copy link

Hi... in EF6 we could query non entity projections with raw SQL using Database.SqlQuery... that was REALLY cool... but I am trying to migrate to EF7 and don't see this method... I looked around and it appears people are saying to use FromSql instead but that's an extension method off of a DbSet... in my case I don't have a DbSet for the type in question because it's not an entity... it's just a plain old projection... pretty please consider bringing SqlQuery to EF7... thank you

@rowanmiller
Copy link
Contributor

Duplicate of #1862

@badyalsk
Copy link

badyalsk commented Feb 1, 2017

In Entity Framework Core, we are not able to return some complex type(columns from different entities) from Stored Procedure using RAW SQL. It alway returns Entity in DbSet. When we are expecting to add support for this functionality in EF Core. What are the alternatives?

@doggy8088
Copy link

@badyalsk The alternative should be Query Types in EF Core 2.1.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants