UC1ViewModel.cs 746 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.Linq;
  5. using System.Reactive.Linq;
  6. //using AvaloniaApplication5.Models;
  7. using ReactiveUI;
  8. using Microsoft.EntityFrameworkCore;//îáÿçàòåëüíî ïîäêëþ÷èòü äëÿ ðàáîòû ñ DBContext
  9. using Avalonia.Input.TextInput;
  10. namespace AvaloniaApplication5.ViewModels
  11. {
  12. public class UC1ViewModel : ReactiveObject
  13. {
  14. //include() âêëþ÷àåò ñóùíîñòè ïî ñâÿçÿì, ò.ê. èçíà÷àëüíî îíè íå âûòÿãèâàþòñÿ èç áàçû
  15. //public List<UserTable> UserTables => Globals.BaseConnection.UserTables.Include(x=>x.IdUserNavigation).Include(g => g.GenderNavigation).ToList();
  16. //public List<UserTable> UserTables => testContext.UserTables.ToList();
  17. }
  18. }