Created
May 5, 2019 11:09
-
-
Save nishanc/c8d48f6708d655bb1c3b8b1d5188569a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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