20 lines
510 B
C#
20 lines
510 B
C#
using FamilyTreeAPI.Models;
|
|
|
|
namespace FamilyTreeAPI.GraphQL.Query
|
|
{
|
|
public class QueryFamilyTree
|
|
{
|
|
[UsePaging]
|
|
[UseProjection]
|
|
[UseFiltering]
|
|
[UseSorting]
|
|
public IQueryable<Person> GetPersons([Service] FamilyTreeDBContext dBContext) => dBContext.Persons;
|
|
[UsePaging]
|
|
[UseProjection]
|
|
[UseFiltering]
|
|
[UseSorting]
|
|
public IQueryable<staff> GetStaffs([Service] FamilyTreeDBContext dBContext) => dBContext.staff;
|
|
}
|
|
|
|
}
|