diff --git a/Icarus.csproj b/Icarus.csproj index 475765e..c4e5c8d 100644 --- a/Icarus.csproj +++ b/Icarus.csproj @@ -7,10 +7,18 @@ + + + runtime; build; native; contentfiles; analyzers + all + + + + diff --git a/Models/Context/SongContext.cs b/Models/Context/SongContext.cs new file mode 100644 index 0000000..6de86f0 --- /dev/null +++ b/Models/Context/SongContext.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; + +using Microsoft.EntityFrameworkCore; +using MySql.Data; +using MySql.Data.EntityFrameworkCore.Extensions; +using MySql.Data.MySqlClient; + +using Icarus.Models; + +namespace Icarus.Models.Context +{ + public class SongContext : DbContext + { + public DbSet Songs { get; set; } + + protected override void OnModelCreating(ModelBuilder modelBuilder) + { + modelBuilder.Entity(); + } + + protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) + { + optionsBuilder.UseMySQL("server=;database=;user=;password="); + } + + } +}