Skip to content

Commit c892260

Browse files
committed
Update EntityFramework
1 parent 5055fb8 commit c892260

File tree

16 files changed

+170
-60
lines changed

16 files changed

+170
-60
lines changed

.idea/.idea.StickyHomeworks/.idea/indexLayout.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.StickyHomeworks/.idea/projectSettingsUpdater.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.StickyHomeworks/.idea/shelf/_2024_2_12_12_47____.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.StickyHomeworks/.idea/shelf/_2024_2_12_12_47____1.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.StickyHomeworks/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.StickyHomeworks/.idea/workspace.xml

Lines changed: 102 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ElysiaFramework/ElysiaFramework.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0-windows</TargetFramework>
4+
<TargetFramework>net8.0-windows</TargetFramework>
55
<Nullable>enable</Nullable>
66
<UseWPF>true</UseWPF>
77
<UseWindowsForms>true</UseWindowsForms>

StickyHomeworks.Core/Context/AppDbContext.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55

66
namespace StickyHomeworks.Core.Context;
77

8-
public partial class DbContext : DbContext
8+
public partial class AppDbContext : DbContext
99
{
10-
public DbContext()
10+
public AppDbContext()
1111
{
1212
}
1313

14-
public DbContext(DbContextOptions<DbContext> options)
14+
public AppDbContext(DbContextOptions<AppDbContext> options)
1515
: base(options)
1616
{
1717
}
@@ -23,7 +23,6 @@ public DbContext(DbContextOptions<DbContext> options)
2323
public virtual DbSet<Homework> Homeworks { get; set; }
2424

2525
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
26-
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see https://go.microsoft.com/fwlink/?LinkId=723263.
2726
=> optionsBuilder.UseSqlite("Data Source=db/app.db");
2827

2928
protected override void OnModelCreating(ModelBuilder modelBuilder)

StickyHomeworks.Core/Models/Emotion.cs

Lines changed: 0 additions & 6 deletions
This file was deleted.

StickyHomeworks.Core/ServiceHost.cs

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)