-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Raw store access APIs #624
Comments
hmm, any progress on this? |
@RickyLin - We haven't started on this yet. It's a fairly isolated feature, so it will be something we work on a little later in the cycle. |
In the meantime, you could probably use a extension method like this
|
@NicoJuicy Looks eerily familiar... 😉 |
@rowanmiller most of the functionality in this issue is covered by a combination of The only other facet is using a raw command on a non-relational store. Should we still keep this issue open as a reminder on the backlog, or is this something we can close? |
@mikary yes I agree that those cover the remaining cases from this item |
non-relational providers can do whatever makes sense for that particular store, so I don't think we need a general item. |
Would be good to provide async version of #1863 (ExecuteSqlCommandAsync) as it was earlier. It's strange to have all API's Async but for this one only sync version. |
Clearing milestone so that we can discuss in triage. I think we have done almost everything here though we should discuss the async request from @kant2002 |
@rowanmiller agreed. The lack of async ExecuteSqlCommand is an oversight (thanks @kant2002!). I will just re-open #1863 and assign it to @mikary to track that. We can probably just close this one now. |
In previous versions of EF we had handy "raw SQL" methods such as SqlQuery and ExecuteSqlCommand that allowed to drop down to the underlying relational provider to execute SQL queries directly (i.e. bypassing the EF mapping) but still take advantage of some of the services provided by EF, e.g. connection management, transaction handling, object materialization and change tracking.
In EF7 since we support relational as well as non relational providers we should figure out how to extend this concept to specific providers through a consistent pattern, e.g. for Azure Table Storage it probably makes sense to provide access to the underlying objects from the .NET storage client library, while for relational stores being able to access the underlying connection and having something like SqlQuery and ExecuteSqlCommand defined as extension methods probably makes sense.
The text was updated successfully, but these errors were encountered: