Skip to content

Commit

Permalink
Fix unresolved MyDbContext
Browse files Browse the repository at this point in the history
  • Loading branch information
xBaank committed Aug 13, 2024
1 parent 378638e commit cab8764
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Console/Database/MyDbContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

namespace Console.Database;

internal class MyDbContext(DbContextOptions<MyDbContext> options) : DbContext(options)
internal class MyDbContext : DbContext
{
public MyDbContext(DbContextOptions options)
: base(options) { }

public MyDbContext() { }

public DbSet<LocalSong> Songs { get; set; }
public DbSet<LocalPlaylist> Playlists { get; set; }
public DbSet<LocalPlaylistSong> PlaylistSongs { get; set; }
Expand Down

0 comments on commit cab8764

Please sign in to comment.