Skip to content

Instantly share code, notes, and snippets.

@nishanc
Created May 5, 2019 15:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nishanc/64b4486c3dd161aa58c7c9988940d45d to your computer and use it in GitHub Desktop.
Save nishanc/64b4486c3dd161aa58c7c9988940d45d to your computer and use it in GitHub Desktop.
using JWTAuth.API.Models;
using Microsoft.EntityFrameworkCore;
namespace JWTAuth.API.Data
{
public class DataContext : DbContext
{
public DataContext(DbContextOptions<DataContext> options) : base(options) {}
public DbSet<Value> Values { get; set; }
public DbSet<User> Users { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment