Adding statically accessible DbContext

This commit is contained in:
2023-11-22 11:39:36 +01:00
parent 5b71368c5e
commit ccfdae7437
2 changed files with 6 additions and 0 deletions

View File

@@ -6,6 +6,10 @@ using WD7UVN_HFT_2023241.Models;
namespace WD7UVN_HFT_2023241.Repository
{
public static class Database
{
public static CompanyDbContext Context { get; set; }
}
public class CompanyDbContext : DbContext
{
//Tables