22 lines
465 B
C#
22 lines
465 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Data.Entity;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
using DAL.Helpers;
|
|||
|
using Domain;
|
|||
|
|
|||
|
namespace DAL
|
|||
|
{
|
|||
|
public class AppDbContext : DbContext
|
|||
|
{
|
|||
|
public AppDbContext() : base(nameOrConnectionString: "name=AppDbConnectionString")
|
|||
|
{
|
|||
|
Database.SetInitializer(new DbInit());
|
|||
|
}
|
|||
|
public DbSet<Person> People { get; set; }
|
|||
|
|
|||
|
}
|
|||
|
}
|