add some initial stuff
This commit is contained in:
13
song_of_the_day/Data/DataContext.cs
Normal file
13
song_of_the_day/Data/DataContext.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
public class DataContext : DbContext
|
||||
{
|
||||
public static DataContext Instance;
|
||||
|
||||
public DbSet<User> Users { get; set; }
|
||||
public DbSet<Song> Songs { get; set; }
|
||||
public DbSet<SongSuggestion> SongSuggestions { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
=> optionsBuilder.UseNpgsql(@"Host=192.168.1.108:5477;Username=sotd;Password=SotdP0stgresP4ss;Database=sotd");
|
||||
}
|
||||
Reference in New Issue
Block a user