Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add and manage user accounts
  • Loading branch information
jkaleta committed Apr 3, 2018
1 parent a2a4920 commit 00079bf
Show file tree
Hide file tree
Showing 69 changed files with 3,272 additions and 28 deletions.
15 changes: 10 additions & 5 deletions Data/Data.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>
16 changes: 0 additions & 16 deletions Data/DataContext.cs

This file was deleted.

30 changes: 30 additions & 0 deletions Data/MicroBankContext.cs
@@ -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;}
}
}
212 changes: 212 additions & 0 deletions Data/Migrations/00000000000000_CreateIdentitySchema.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 00079bf

Please sign in to comment.