26 lines
545 B
C#
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!");
|
|
}
|
|
}
|
|
}
|