refact
This commit is contained in:
parent
93394b3e82
commit
6a59f776d5
223 changed files with 75 additions and 8 deletions
20
src/nuget-host/Data/ApplicationDbContext.cs
Normal file
20
src/nuget-host/Data/ApplicationDbContext.cs
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using nuget_host.Models;
|
||||
using nuget_host.Models.ApiKeys;
|
||||
|
||||
namespace nuget_host.Data
|
||||
{
|
||||
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
|
||||
{
|
||||
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<ApiKey> ApiKeys { get; set; }
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue