17 references to EntityFrameworkCoreCosmosSettings
Aspire.Microsoft.EntityFrameworkCore.Cosmos (11)
AspireAzureEFCoreCosmosExtensions.cs (10)
37
/// <exception cref="InvalidOperationException">Thrown when mandatory <see cref="
EntityFrameworkCoreCosmosSettings
.ConnectionString"/> is not provided.</exception>
42
Action<
EntityFrameworkCoreCosmosSettings
>? configureSettings = null,
49
var
settings = builder.GetDbContextSettings<TContext,
EntityFrameworkCoreCosmosSettings
>(
123
Action<
EntityFrameworkCoreCosmosSettings
>? configureSettings = null) where TContext : DbContext
127
var
settings = builder.GetDbContextSettings<TContext,
EntityFrameworkCoreCosmosSettings
>(
158
private static void ConfigureRequestTimeout<TContext>(DbContextOptionsBuilder builder,
EntityFrameworkCoreCosmosSettings
settings)
167
throw new InvalidOperationException($"Conflicting values for 'RequestTimeout' were found in {nameof(
EntityFrameworkCoreCosmosSettings
)} and set in DbContextOptions<{typeof(TContext).Name}>.");
174
private static void ConfigureInstrumentation<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.NonPublicConstructors | DynamicallyAccessedMemberTypes.PublicProperties)] TContext>(IHostApplicationBuilder builder,
EntityFrameworkCoreCosmosSettings
settings) where TContext : DbContext
AssemblyInfo.cs (1)
7
[assembly: ConfigurationSchema("Aspire:Microsoft:EntityFrameworkCore:Cosmos", typeof(
EntityFrameworkCoreCosmosSettings
))]
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (6)
ConformanceTests.cs (5)
15
public class ConformanceTests : ConformanceTests<TestDbContext,
EntityFrameworkCoreCosmosSettings
>
36
protected override void RegisterComponent(HostApplicationBuilder builder, Action<
EntityFrameworkCoreCosmosSettings
>? configure = null, string? key = null)
39
protected override void SetHealthCheck(
EntityFrameworkCoreCosmosSettings
options, bool enabled)
42
protected override void SetTracing(
EntityFrameworkCoreCosmosSettings
options, bool enabled)
45
protected override void SetMetrics(
EntityFrameworkCoreCosmosSettings
options, bool enabled)
EnrichCosmosDbTests.cs (1)
21
protected override void RegisterComponent(HostApplicationBuilder builder, Action<
EntityFrameworkCoreCosmosSettings
>? configure = null, string? key = null)