-
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.
Add IInMemoryDbContextOptionsBuilderInfrastructure
This is the moral equivalent of IRelationalDbContextOptionsBuilderInfrastructure which lets extension methods access the core options builder. Fixes #23669
- Loading branch information
Showing
4 changed files
with
47 additions
and
3 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
18 changes: 18 additions & 0 deletions
18
src/EFCore.Cosmos/Infrastructure/ICosmosDbContextOptionsBuilderInfrastructure.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,18 @@ | ||
// 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. | ||
|
||
namespace Microsoft.EntityFrameworkCore.Infrastructure | ||
{ | ||
/// <summary> | ||
/// Explicitly implemented by <see cref="CosmosDbContextOptionsBuilder" /> to hide | ||
/// methods that are used by database provider extension methods but not intended to be called by application | ||
/// developers. | ||
/// </summary> | ||
public interface ICosmosDbContextOptionsBuilderInfrastructure | ||
{ | ||
/// <summary> | ||
/// Gets the core options builder. | ||
/// </summary> | ||
DbContextOptionsBuilder OptionsBuilder { get; } | ||
} | ||
} |
18 changes: 18 additions & 0 deletions
18
src/EFCore.InMemory/Infrastructure/IInMemoryDbContextOptionsBuilderInfrastructure.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,18 @@ | ||
// 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. | ||
|
||
namespace Microsoft.EntityFrameworkCore.Infrastructure | ||
{ | ||
/// <summary> | ||
/// Explicitly implemented by <see cref="InMemoryDbContextOptionsBuilder" /> to hide | ||
/// methods that are used by database provider extension methods but not intended to be called by application | ||
/// developers. | ||
/// </summary> | ||
public interface IInMemoryDbContextOptionsBuilderInfrastructure | ||
{ | ||
/// <summary> | ||
/// Gets the core options builder. | ||
/// </summary> | ||
DbContextOptionsBuilder OptionsBuilder { get; } | ||
} | ||
} |
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