-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow creation of a DbCommand from an EF IQueryable
Provides access to all the real parameter values, including facets. Should be executable. However, pretty sure people will think this isn't a good idea...
- Loading branch information
1 parent
a388f5e
commit dc1e811
Showing
6 changed files
with
130 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/EFCore.Relational/Properties/RelationalStrings.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
src/EFCore.Relational/Query/IRelationalQueryingEnumerable.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
using System; | ||
using System.Collections; | ||
using System.Data.Common; | ||
|
||
namespace Microsoft.EntityFrameworkCore.Query | ||
{ | ||
/// <summary> | ||
/// <para> | ||
/// Interface that can be implemented by a database provider's <see cref="IEnumerable" /> implementation to | ||
/// provide the query string for debugging purposes. | ||
/// </para> | ||
/// <para> | ||
/// This interface is typically used by database providers (and other extensions). It is generally | ||
/// not used in application code. | ||
/// </para> | ||
/// </summary> | ||
public interface IRelationalQueryingEnumerable : IQueryingEnumerable | ||
{ | ||
/// <summary> | ||
/// <para> | ||
/// Creates a <see cref="DbCommand"/> set up to execute this query. | ||
/// </para> | ||
/// <para> | ||
/// Warning: there is no guarantee that executing this command directly will result in the same behavior as if EF Core had | ||
/// executed the command. | ||
/// </para> | ||
/// <para> | ||
/// Note that DbCommand is an <see cref="IDisposable"/> object. The caller is responsible for disposing the returned | ||
/// command. | ||
/// </para> | ||
/// </summary> | ||
/// <returns> The newly created command. </returns> | ||
DbCommand CreateDbCommand(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters