#58 continue using Reflection to get configurations

This commit is contained in:
Dominic Villemure
2024-06-11 20:20:51 -04:00
parent 47fb3caa0d
commit 108d5424a4

View File

@@ -1,6 +1,6 @@
using Hutopy.Application.Common.Interfaces;
using System.Reflection;
using Hutopy.Application.Common.Interfaces;
using Hutopy.Domain.Entities;
using Hutopy.Infrastructure.Data.Configurations;
using Hutopy.Infrastructure.Identity;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
@@ -22,8 +22,7 @@ namespace Hutopy.Infrastructure.Data
base.OnModelCreating(builder);
// Apply configurations
builder.ApplyConfiguration(new UserTransactionConfiguration());
builder.ApplyConfiguration(new ApplicationUserConfiguration());
builder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly());
}
}
}