Skip to content

Instantly share code, notes, and snippets.

@nishanc
Created May 5, 2019 11:09
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/c8d48f6708d655bb1c3b8b1d5188569a to your computer and use it in GitHub Desktop.
Save nishanc/c8d48f6708d655bb1c3b8b1d5188569a 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; }
}
}
namespace JWTAuth.API.Models
{
public class Value
{
public int Id { get; set; }
public string Name { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment