Basic Console Application Using Entity Framework 6
namespace EfConsoleApplication
{
using System.Data.Entity;
/// <summary>
/// The person db context.
/// </summary>
public class PersonDbContext: DbContext
{
public PersonDbContext() : base("name=PersonContext")
{
}
public DbSet<Person> Persons { get; set; }
}
}