test project created

This commit is contained in:
Kalana B. Thilakarathna
2026-08-19 14:40:04 +05:30
parent 397af8fd59
commit 4673d72d53
148 changed files with 8252 additions and 285 deletions
+1 -2
View File
@@ -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>();