Backend Services Split into separate projects for reference from other front ends
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using DeepDrftModels.Entities;
|
||||
using DeepDrftWeb.Services.Data.Configurations;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace DeepDrftWeb.Services.Data;
|
||||
|
||||
public class DeepDrftContext : DbContext
|
||||
{
|
||||
public DeepDrftContext(DbContextOptions<DeepDrftContext> options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<TrackEntity> Tracks { get; set; }
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
base.OnModelCreating(modelBuilder);
|
||||
|
||||
modelBuilder.ApplyConfiguration(new TrackConfiguration());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user