From 90f4f9dd51b45ed43932974369a637765a916c0e Mon Sep 17 00:00:00 2001 From: shept Date: Tue, 1 Apr 2025 16:55:04 +0500 Subject: [PATCH] deleted DataContext.cs --- .../Data/DataContext.cs | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 SurveyLib.Infrastructure.EFCore/Data/DataContext.cs diff --git a/SurveyLib.Infrastructure.EFCore/Data/DataContext.cs b/SurveyLib.Infrastructure.EFCore/Data/DataContext.cs deleted file mode 100644 index dcc2e68..0000000 --- a/SurveyLib.Infrastructure.EFCore/Data/DataContext.cs +++ /dev/null @@ -1,17 +0,0 @@ -using Microsoft.EntityFrameworkCore; -using SurveyLib.Core.Models; - -namespace SurveyLib.Infrastructure.EFCore.Data; - -public class DataContext : DbContext -{ - public DbSet Surveys { get; set; } - public DbSet Questions { get; set; } - public DbSet Completions { get; set; } - public DbSet Answers { get; set; } - - public DataContext(DbContextOptions options) : base(options) - { - Database.EnsureCreated(); - } -} \ No newline at end of file