using Avalonia.Controls; using AvaloniaApplicationBase.Models; using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AvaloniaApplicationBase.ViewModels { internal class show { public List TeacherList => MainWindowViewModel.myConnection.Teachers.Include(x => x.Gender).Include(x => x.TeacherCourses).ThenInclude(x => x.Course).Include(x => x.TeacherDisciplines).ThenInclude(x => x.Discipline).ToList(); } }