|
1 | | -using Microsoft.EntityFrameworkCore.Infrastructure; |
| 1 | +using MySql.EntityFrameworkCore.Infrastructure; |
2 | 2 | using Steeltoe.Configuration.CloudFoundry; |
3 | 3 | using Steeltoe.Connectors.EntityFrameworkCore.MySql; |
4 | 4 | using Steeltoe.Connectors.MySql; |
|
36 | 36 | // Steeltoe: Setup DbContext connection strings, optionally changing MySQL options at runtime. |
37 | 37 | builder.Services.AddDbContext<AppDbContext>((serviceProvider, options) => options.UseMySql(serviceProvider, serviceOneName, null, untypedOptions => |
38 | 38 | { |
39 | | - var mySqlOptions = (MySqlDbContextOptionsBuilder)untypedOptions; |
| 39 | + var mySqlOptions = (MySQLDbContextOptionsBuilder)untypedOptions; |
40 | 40 | mySqlOptions.CommandTimeout(20); |
41 | 41 | })); |
42 | 42 |
|
43 | 43 | builder.Services.AddDbContext<OtherDbContext>((serviceProvider, options) => options.UseMySql(serviceProvider, serviceTwoName, null, untypedOptions => |
44 | 44 | { |
45 | | - var mySqlOptions = (MySqlDbContextOptionsBuilder)untypedOptions; |
| 45 | + var mySqlOptions = (MySQLDbContextOptionsBuilder)untypedOptions; |
46 | 46 | mySqlOptions.CommandTimeout(25); |
47 | 47 | })); |
48 | 48 | } |
|
54 | 54 | // Steeltoe: Setup DbContext connection string, optionally changing MySQL options at runtime. |
55 | 55 | builder.Services.AddDbContext<AppDbContext>((serviceProvider, options) => options.UseMySql(serviceProvider, null, null, untypedOptions => |
56 | 56 | { |
57 | | - var mySqlOptions = (MySqlDbContextOptionsBuilder)untypedOptions; |
| 57 | + var mySqlOptions = (MySQLDbContextOptionsBuilder)untypedOptions; |
58 | 58 | mySqlOptions.CommandTimeout(15); |
59 | 59 | })); |
60 | 60 | } |
|
0 commit comments