show.cs 548 B

12345678910111213141516
  1. using Avalonia.Controls;
  2. using AvaloniaApplicationBase.Models;
  3. using Microsoft.EntityFrameworkCore;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace AvaloniaApplicationBase.ViewModels
  10. {
  11. internal class show
  12. {
  13. public List<Teacher> 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();
  14. }
  15. }