Implemented EF Core Migrations #13

This commit is contained in:
amazing-username
2019-04-14 23:12:18 +00:00
parent 0c47da3665
commit cb6e737bff
2 changed files with 16 additions and 7 deletions
+5 -6
View File
@@ -14,15 +14,14 @@ namespace Icarus.Models.Context
{
public DbSet<Song> Songs { get; set; }
public SongContext(DbContextOptions<SongContext> options)
: base(options)
{ }
protected override void OnModelCreating(ModelBuilder modelBuilder)
{
modelBuilder.Entity<Song>();
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseMySQL("server=;database=;user=;password=");
}
}
}