В некоторых файлах, основанных на интерфейсах, стоят заглушки. Создана несколько экранов, которые также являются заглушками.
24 lines
729 B
C#
24 lines
729 B
C#
using EmployeeManagmentDataBaseImplement.Models;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace EmployeeManagmentDataBaseImplement
|
|
{
|
|
public class EmployeeManagementDbContext : DbContext
|
|
{
|
|
public DbSet<Employee> Employees { get; set; }
|
|
public DbSet<PhisicalPerson> PhisicalPersons { get; set; }
|
|
public DbSet<Salary> Salaries { get; set; }
|
|
public DbSet<Vacation> Vacations { get; set; }
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
{
|
|
optionsBuilder.UseSqlServer("YourConnectionStringHere");
|
|
}
|
|
}
|
|
}
|