morry2341

ApplicationDbContext_bank

Nov 25th, 2022
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. using MyProject.Models;
  2. using Microsoft.EntityFrameworkCore;
  3. using AutoMapper;
  4.  
  5. namespace ZadarskaBanka.DB
  6. {
  7.  
  8. public class ApplicationDbContext : DbContext
  9. {
  10.  
  11. public ApplicationDbContext(DbContextOptions<ApplicationDbContext> options)
  12. : base(options)
  13. { }
  14. public DbSet<AccountDriver> AccountNumbers { get; set; }
  15.  
  16. public DbSet<AccountDriver> Email { get; set; }
  17.  
  18. protected override void OnModelCreating(ModelBuilder builder)
  19. {
  20. base.OnModelCreating(builder);
  21.  
  22. }
  23.  
  24.  
  25. }
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment