test project created
This commit is contained in:
@@ -20,7 +20,6 @@ using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using MySql.EntityFrameworkCore.Extensions;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
@@ -28,7 +27,7 @@ var connectionString = builder.Configuration.GetConnectionString("DefaultConnect
|
||||
?? throw new InvalidOperationException("Connection string 'DefaultConnection' was not found.");
|
||||
|
||||
builder.Services.AddDbContext<AppDBContext>(options =>
|
||||
options.UseMySQL(connectionString));
|
||||
options.UseMySql(connectionString, ServerVersion.AutoDetect(connectionString)));
|
||||
|
||||
builder.Services.AddScoped<IUnitOfWork, EFUnitOfWork>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user