select specific data from table in Microsoft.AspNetCore.Datasync.EFCore

Windev 1 Reputation point
2022-10-03T18:41:37.273+00:00

I'm in the process of developing WPF app for clinical purposes, we offer app for each clinics to manage patient workflow. Trying to implement the data sync from API to WPF app.

Got a demo from https://github.com/Azure/azure-mobile-apps/tree/main/samples. But stuck at the moment that as all the data inside the tables are collected on the call but I need to select specific data using Id ( Clinic specific ). Tried a query etc but no success.

PatientsController.cs

[Route("tables/Patients")]
public class PatientsController : TableController<Patients>
{
public PatientsController(AppDbContext context)
: base(new EntityTableRepository<Patients>(context))
{

}  

}
AppDbContext.cs

public class AppDbContext : DbContext
{
public AppDbContext(DbContextOptions<AppDbContext> options) : base(options)
{
}
public DbSet<Patients> Patients => Set<Patients>();

I would really appreciate if you could advice how to get patient specific updates ( based on clinics ) instead of all patients data

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,681 questions
{count} votes