#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.Domain.Entities;
|
||||||
using Hutopy.Infrastructure.Data.Configurations;
|
|
||||||
using Hutopy.Infrastructure.Identity;
|
using Hutopy.Infrastructure.Identity;
|
||||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
@@ -22,8 +22,7 @@ namespace Hutopy.Infrastructure.Data
|
|||||||
base.OnModelCreating(builder);
|
base.OnModelCreating(builder);
|
||||||
|
|
||||||
// Apply configurations
|
// Apply configurations
|
||||||
builder.ApplyConfiguration(new UserTransactionConfiguration());
|
builder.ApplyConfigurationsFromAssembly(Assembly.GetExecutingAssembly());
|
||||||
builder.ApplyConfiguration(new ApplicationUserConfiguration());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user