public ModelNavigator(LabSystemsContextFactory contextFactory) { // Not great, I know. Think of a cleaner way... string fullType = contextFactory.CreateDbContext().LabSystems.EntityType.Name; SelectedModelType = fullType.Substring(fullType.LastIndexOf('.') + 1); }
public LabSystemViewModel(LabSystemsContextFactory contextFactory) { _service = new LabSystemService(contextFactory); RefreshCommand = new AsyncCommand(async() => { Systems.Clear(); IsNotScanning = false; Task <IEnumerable <LabSystem> > task = _service.GetAll(); await task; foreach (LabSystem system in task.Result) { Systems.Add(system); } IsNotScanning = true; }); }
public DiskDriveService(LabSystemsContextFactory contextFactory) : base(contextFactory) { }
public LabSystemService(LabSystemsContextFactory contextFactory) : base(contextFactory) { }
public GenericDataService(LabSystemsContextFactory contextFactory) { _contextFactory = contextFactory; }