Error on Class called "Ticket"
iivanmendozaa opened this issue · 0 comments
I have the following query for the "Ticket" class.
return _ticket.Where(x => x.Total >= minAge && x.Total <= maxAge).ToList();
for some reason it doens work, but if I change the name to another it works, im not pretty sure if it a bug of my VS or something some layers down.
`using Redis.OM.Modeling;
using static OpenTicketItemsService.Constants.Application.ApplicationConstants;
namespace OpenTicketItemsService.Model;
[Document(StorageType = StorageType.Json, Prefixes = new [] { "Ticket" })]
public class Ticket
{
[RedisIdField][Indexed]
public int? Id { get; set; }
[Indexed]
public int Total { get; set; }
[Searchable]
public string? Customer { get; set; }
[Indexed]
public double SubTotal { get; set; }
[Indexed]
public double Tax { get; set; }
[Searchable]
public string? GlobalComment { get; set; }
[Indexed]
public HashSet? Items { get; set; }
[Indexed]
public TicketState State { get; set; }
[Indexed]
public DateTime CreatedOn { get; set; }
[Searchable]
public string? TenantId { get; set; }
}`