WebApi + ClientApp, GraphQL, Reflection
This commit is contained in:
52
Events-WebApi/Events.WebAPI.Contract/DTOs/PersonDTO.cs
Normal file
52
Events-WebApi/Events.WebAPI.Contract/DTOs/PersonDTO.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
using Sieve.Attributes;
|
||||
|
||||
namespace Events.WebAPI.Contract.DTOs;
|
||||
|
||||
public class PersonDTO : IHasIdAsPK<int>
|
||||
{
|
||||
[Sieve(CanFilter = true, CanSort = true)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Sieve(CanFilter = true, CanSort = true)]
|
||||
public string FirstName { get; set; } = string.Empty;
|
||||
|
||||
[Sieve(CanFilter = true, CanSort = true)]
|
||||
public string LastName { get; set; } = string.Empty;
|
||||
|
||||
[Sieve(CanFilter = true, CanSort = true)]
|
||||
public string FirstNameTranscription { get; set; } = string.Empty;
|
||||
|
||||
[Sieve(CanFilter = true, CanSort = true)]
|
||||
public string LastNameTranscription { get; set; } = string.Empty;
|
||||
|
||||
public string AddressLine { get; set; } = string.Empty;
|
||||
|
||||
public string PostalCode { get; set; } = string.Empty;
|
||||
|
||||
public string City { get; set; } = string.Empty;
|
||||
|
||||
public string AddressCountry { get; set; } = string.Empty;
|
||||
|
||||
[Sieve(CanFilter = true, CanSort = true)]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
public string ContactPhone { get; set; } = string.Empty;
|
||||
|
||||
[Sieve(CanSort = true)]
|
||||
public DateOnly BirthDate { get; set; }
|
||||
|
||||
[Sieve(CanFilter = true, CanSort = true)]
|
||||
public string DocumentNumber { get; set; } = string.Empty;
|
||||
|
||||
[Sieve(CanFilter = true, CanSort = true)]
|
||||
public string CountryCode { get; set; } = string.Empty;
|
||||
|
||||
[Sieve(CanFilter = true, CanSort = true)]
|
||||
public string CountryName { get; set; } = string.Empty;
|
||||
|
||||
[Sieve(CanSort = true)]
|
||||
public string FullNameTranscription { get; set; } = string.Empty;
|
||||
|
||||
[Sieve(CanSort = true)]
|
||||
public int RegistrationsCount { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user