DemoService/Utils/Context.cs
2024-09-05 16:11:39 +03:00

18 lines
488 B
C#

using DemoService.Context;
using DemoService.Models;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DemoService.Utils
{
public static class Context
{
public static OvsyannikovContext DbContext { get; set; } = new OvsyannikovContext();
public static List<Service> Services { get; set; } = new List<Service>(DbContext.Services.ToList());
}
}