praktikum4/ConApp/Program.cs
2017-03-01 17:20:40 +02:00

26 lines
545 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Domain;
namespace ConApp
{
class Program
{
static void Main(string[] args)
{
using (var ctx = new AppDbContext())
{
foreach (var person in ctx.People)
{
Console.WriteLine($"{person.PersonId}: {person.FirstLastName}");
}
}
Console.WriteLine("Done!");
}
}
}