11 references to AddMySqlDbContext
Aspire.Hosting.MySql.Tests (1)
MySqlFunctionalTests.cs (1)
415hb.AddMySqlDbContext<TestDbContext>(db.Resource.Name);
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (10)
AspireEFMySqlExtensionsTests.cs (9)
41builder.AddMySqlDbContext<TestDbContext>("mysql"); 60builder.AddMySqlDbContext<TestDbContext>("mysql", settings => settings.ConnectionString = ConnectionString); 82builder.AddMySqlDbContext<TestDbContext>("mysql"); 104builder.AddMySqlDbContext<TestDbContext>("mysql", configureDbContextOptions: optionsBuilder => 147builder.AddMySqlDbContext<TestDbContext>("mysql", configureDbContextOptions: optionsBuilder => 194builder.AddMySqlDbContext<TestDbContext>("mysql", configureDbContextOptions: optionsBuilder => 229builder.AddMySqlDbContext<TestDbContext>("mysql", configureDbContextOptions: optionsBuilder => 269var exception = Assert.Throws<InvalidOperationException>(() => builder.AddMySqlDbContext<TestDbContext>("mysql")); 292var exception = Record.Exception(() => builder.AddMySqlDbContext<TestDbContext>("mysql"));
ConformanceTests.cs (1)
91=> builder.AddMySqlDbContext<TestDbContext>(key ?? "mysql", configure);