Skip to content

Instantly share code, notes, and snippets.

@Chriz76
Created May 15, 2021 19:08
Show Gist options
  • Save Chriz76/906f63b5e98c1da35b2a75a7dabdcea7 to your computer and use it in GitHub Desktop.
Save Chriz76/906f63b5e98c1da35b2a75a7dabdcea7 to your computer and use it in GitHub Desktop.
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