Created
May 15, 2021 19:08
-
-
Save Chriz76/906f63b5e98c1da35b2a75a7dabdcea7 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 Microsoft.EntityFrameworkCore; | |
namespace PostService.Data | |
{ | |
public class PostServiceContext : DbContext | |
{ | |
public PostServiceContext (DbContextOptions<PostServiceContext> options) | |
: base(options) | |
{ | |
} | |
public DbSet<PostService.Entities.Post> Post { get; set; } | |
public DbSet<PostService.Entities.User> User { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment