DutchContext.cs 599 B

1234567891011121314151617181920212223
  1. using DutchTreat.Data.Entities;
  2. using Microsoft.AspNetCore.Identity.EntityFrameworkCore;
  3. using Microsoft.EntityFrameworkCore;
  4. using Microsoft.Extensions.Configuration;
  5. using System;
  6. using System.Collections.Generic;
  7. using System.Linq;
  8. using System.Text;
  9. using System.Threading.Tasks;
  10. namespace DutchTreat.Data
  11. {
  12. public class DutchContext : IdentityDbContext<StoreUser>
  13. {
  14. public DutchContext(DbContextOptions<DutchContext> options) : base(options)
  15. {
  16. }
  17. public DbSet<Product> Products { get; set; }
  18. public DbSet<Order> Orders { get; set; }
  19. }
  20. }