diff --git a/src/Infrastructure/Data/ApplicationDbContext.cs b/src/Infrastructure/Data/ApplicationDbContext.cs index 8b4676e..21b06a4 100644 --- a/src/Infrastructure/Data/ApplicationDbContext.cs +++ b/src/Infrastructure/Data/ApplicationDbContext.cs @@ -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()); } } }