isn/src/nuget-host/Data/ApplicationDbContext.cs

22 lines
670 B
C#
Raw Normal View History

2021-04-25 12:12:50 +01:00
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore;
2021-05-16 14:07:14 +01:00
using nuget_host.Data;
using nuget_host.Data.ApiKeys;
2021-04-25 12:12:50 +01:00
namespace nuget_host.Data
{
public class ApplicationDbContext : IdentityDbContext<ApplicationUser>
{
public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
: base(options)
{
}
2021-05-16 14:07:14 +01:00
2021-05-02 16:37:03 +01:00
public DbSet<ApiKey> ApiKeys { get; set; }
2021-05-16 14:07:14 +01:00
public DbSet<Package> Packages { get; set; }
public DbSet<PackageVersion> PackageVersions { get; set; }
2021-04-25 12:12:50 +01:00
}
}