Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
3,272 additions
and 28 deletions.
- +10 −5 Data/Data.csproj
- +0 −16 Data/DataContext.cs
- +30 −0 Data/MicroBankContext.cs
- +212 −0 Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs
- +216 −0 Data/Migrations/00000000000000_CreateIdentitySchema.cs
- +1 −1 Data/Migrations/20180128232859_Initial.Designer.cs
- +1 −1 Data/Migrations/20180128232859_Initial.cs
- +196 −2 Data/Migrations/MicroBankContextModelSnapshot.cs
- +13 −0 Data/Models/ApplicationUser.cs
- +34 −0 WebApp/Controllers/AccountController.cs
- +24 −0 WebApp/Extensions/EmailSenderExtensions.cs
- +38 −0 WebApp/Extensions/UrlHelperExtensions.cs
- +10 −0 WebApp/Pages/Account/AccessDenied.cshtml
- +16 −0 WebApp/Pages/Account/AccessDenied.cshtml.cs
- +12 −0 WebApp/Pages/Account/ConfirmEmail.cshtml
- +43 −0 WebApp/Pages/Account/ConfirmEmail.cshtml.cs
- +33 −0 WebApp/Pages/Account/ExternalLogin.cshtml
- +133 −0 WebApp/Pages/Account/ExternalLogin.cshtml.cs
- +26 −0 WebApp/Pages/Account/ForgotPassword.cshtml
- +56 −0 WebApp/Pages/Account/ForgotPassword.cshtml.cs
- +10 −0 WebApp/Pages/Account/ForgotPasswordConfirmation.cshtml
- +16 −0 WebApp/Pages/Account/ForgotPasswordConfirmation.cshtml.cs
- +10 −0 WebApp/Pages/Account/Lockout.cshtml
- +16 −0 WebApp/Pages/Account/Lockout.cshtml.cs
- +82 −0 WebApp/Pages/Account/Login.cshtml
- +100 −0 WebApp/Pages/Account/Login.cshtml.cs
- +41 −0 WebApp/Pages/Account/LoginWith2fa.cshtml
- +96 −0 WebApp/Pages/Account/LoginWith2fa.cshtml.cs
- +29 −0 WebApp/Pages/Account/LoginWithRecoveryCode.cshtml
- +89 −0 WebApp/Pages/Account/LoginWithRecoveryCode.cshtml.cs
- +35 −0 WebApp/Pages/Account/Manage/ChangePassword.cshtml
- +103 −0 WebApp/Pages/Account/Manage/ChangePassword.cshtml.cs
- +25 −0 WebApp/Pages/Account/Manage/Disable2fa.cshtml
- +62 −0 WebApp/Pages/Account/Manage/Disable2fa.cshtml.cs
- +53 −0 WebApp/Pages/Account/Manage/EnableAuthenticator.cshtml
- +140 −0 WebApp/Pages/Account/Manage/EnableAuthenticator.cshtml.cs
- +52 −0 WebApp/Pages/Account/Manage/ExternalLogins.cshtml
- +109 −0 WebApp/Pages/Account/Manage/ExternalLogins.cshtml.cs
- +27 −0 WebApp/Pages/Account/Manage/GenerateRecoveryCodes.cshtml
- +64 −0 WebApp/Pages/Account/Manage/GenerateRecoveryCodes.cshtml.cs
- +45 −0 WebApp/Pages/Account/Manage/Index.cshtml
- +129 −0 WebApp/Pages/Account/Manage/Index.cshtml.cs
- +34 −0 WebApp/Pages/Account/Manage/ManageNavPages.cs
- +23 −0 WebApp/Pages/Account/Manage/ResetAuthenticator.cshtml
- +52 −0 WebApp/Pages/Account/Manage/ResetAuthenticator.cshtml.cs
- +35 −0 WebApp/Pages/Account/Manage/SetPassword.cshtml
- +94 −0 WebApp/Pages/Account/Manage/SetPassword.cshtml.cs
- +25 −0 WebApp/Pages/Account/Manage/ShowRecoveryCodes.cshtml
- +25 −0 WebApp/Pages/Account/Manage/ShowRecoveryCodes.cshtml.cs
- +49 −0 WebApp/Pages/Account/Manage/TwoFactorAuthentication.cshtml
- +54 −0 WebApp/Pages/Account/Manage/TwoFactorAuthentication.cshtml.cs
- +23 −0 WebApp/Pages/Account/Manage/_Layout.cshtml
- +18 −0 WebApp/Pages/Account/Manage/_ManageNav.cshtml
- +10 −0 WebApp/Pages/Account/Manage/_StatusMessage.cshtml
- +1 −0 WebApp/Pages/Account/Manage/_ViewImports.cshtml
- +37 −0 WebApp/Pages/Account/Register.cshtml
- +92 −0 WebApp/Pages/Account/Register.cshtml.cs
- +37 −0 WebApp/Pages/Account/ResetPassword.cshtml
- +88 −0 WebApp/Pages/Account/ResetPassword.cshtml.cs
- +10 −0 WebApp/Pages/Account/ResetPasswordConfirmation.cshtml
- +16 −0 WebApp/Pages/Account/ResetPasswordConfirmation.cshtml.cs
- +10 −0 WebApp/Pages/Account/SignedOut.cshtml
- +20 −0 WebApp/Pages/Account/SignedOut.cshtml.cs
- +1 −0 WebApp/Pages/Account/_ViewImports.cshtml
- +26 −0 WebApp/Pages/_LoginPartial.cshtml
- +17 −0 WebApp/Services/EmailSender.cs
- +12 −0 WebApp/Services/IEmailSender.cs
- +25 −2 WebApp/Startup.cs
- +1 −1 WebApp/WebApp.csproj
@@ -1,11 +1,16 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netstandard2.0</TargetFramework> | ||
<TargetFramework>netcoreapp2.0</TargetFramework> | ||
<UserSecretsId>aspnet-microbank-53CB7055-FFC1-450A-921B-746F6D103DD8</UserSecretsId> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="2.0.1" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.1" /> | ||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="2.0.1" /> | ||
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.5" /> | ||
</ItemGroup> | ||
|
||
</Project> | ||
<ItemGroup> | ||
<DotNetCliToolReference Include="Microsoft.EntityFrameworkCore.Tools.DotNet" Version="2.0.1" /> | ||
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="2.0.0" /> | ||
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.2" /> | ||
</ItemGroup> | ||
</Project> |
@@ -0,0 +1,30 @@ | ||
using Microsoft.EntityFrameworkCore; | ||
using microbank.Data.Models; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Threading.Tasks; | ||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore; | ||
|
||
namespace microbank.Data | ||
{ | ||
public class MicroBankContext : IdentityDbContext<ApplicationUser> | ||
{ | ||
public MicroBankContext(DbContextOptions options) | ||
: base(options) | ||
{ | ||
} | ||
|
||
protected override void OnModelCreating(ModelBuilder builder) | ||
{ | ||
base.OnModelCreating(builder); | ||
// Customize the ASP.NET Identity model and override the defaults if needed. | ||
// For example, you can rename the ASP.NET Identity table names and more. | ||
// Add your customizations after calling base.OnModelCreating(builder); | ||
} | ||
|
||
// public DbSet<BankAccount> BankAccounts { get; set; } | ||
|
||
public DbSet<Models.Customer> Customers {get; set;} | ||
} | ||
} |
Oops, something went wrong.