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