27 lines
777 B
C#
27 lines
777 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Assignment3.Models;
|
|
|
|
namespace Assignment3.Data
|
|
{
|
|
public class Assignment3Context : DbContext
|
|
{
|
|
public Assignment3Context (DbContextOptions<Assignment3Context> options)
|
|
: base(options)
|
|
{
|
|
}
|
|
|
|
public DbSet<Assignment3.Models.Immunization> Immunization { get; set; } = default!;
|
|
|
|
public DbSet<Assignment3.Models.Organization>? Organization { get; set; }
|
|
|
|
public DbSet<Assignment3.Models.Patient>? Patient { get; set; }
|
|
|
|
public DbSet<Assignment3.Models.Provider>? Provider { get; set; }
|
|
public DbSet<Assignment3.Models.Error>? Error { get; set; }
|
|
}
|
|
}
|