CodeLiturgy.Dashboard/BlueWest.Api/StartupExtensions.cs

14 lines
429 B
C#
Raw Normal View History

2022-08-13 06:35:36 +03:00
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Configuration;
namespace BlueWest.WebApi;
public static class StartupExtensions
{
public static void GetSqlSettings(this DbContextOptionsBuilder optionsBuilder, IConfiguration configuration)
{
optionsBuilder.UseMySql(configuration.GetConnectionString("LocalMySQL"),
new MySqlServerVersion(new Version(8, 0, 11)));
}
}