#58 continue using Reflection to get configurations
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user