dotnet version change, readme, script for ef
This commit is contained in:
@@ -28,7 +28,6 @@ public static class DependencyInjection
|
||||
services.AddDbContext<ApplicationDbContext>((sp, options) =>
|
||||
{
|
||||
options.AddInterceptors(sp.GetServices<ISaveChangesInterceptor>());
|
||||
|
||||
options.UseSqlServer(connectionString);
|
||||
});
|
||||
|
||||
@@ -41,6 +40,7 @@ public static class DependencyInjection
|
||||
|
||||
services.AddAuthorizationBuilder();
|
||||
|
||||
// Might need to change and use AddIdentity<User, Role>() when we need to integrate connection via third party ( facebook, google )
|
||||
services
|
||||
.AddIdentityCore<ApplicationUser>()
|
||||
.AddRoles<IdentityRole>()
|
||||
|
||||
Reference in New Issue
Block a user