21 lines
553 B
C#
21 lines
553 B
C#
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());
|
|
}
|
|
} |