Created
December 2, 2020 18:19
-
-
Save AbubakarSiddiq/eb51cd400da35336e54f28938c2f2cc9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 AspNetCore5Microservices.Models; | |
using Microsoft.EntityFrameworkCore; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace AspNetCore5Microservices.DataContexts | |
{ | |
public class ProductContext : DbContext | |
{ | |
public ProductContext(DbContextOptions<ProductContext> options) : base(options) | |
{ | |
} | |
public DbSet<Product> Products { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment