This commit is contained in:
2026-07-20 18:41:53 +10:00
commit 95f3858755
6 changed files with 75 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
using helloapp;
using (HelloappContext db = new HelloappContext())
{
// получаем объекты из бд и выводим на консоль
var users = db.Users.ToList();
Console.WriteLine("Список объектов:");
foreach (User u in users)
{
Console.WriteLine($"{u.Id}.{u.Name} - {u.Age}");
}
}