Skip to content

Filter in List<string> not working #39

@akkayalper

Description

@akkayalper

Filter is not working Barcodes property shown below entity. I'm using postresql and Barcodes column is text[] type. I can filter Barcodes with efcore _context.Products.where(w=>w.Barcodes.Contains("barcode")).ToList() linq query. There is no match like this type, any suggestion?

public class Product
{
    public Guid Id { get; set; }
    public int BranchId { get; set; }
    public string ProductName { get; set; }
    public string ProductNumber { get; set; }
    public List<string> Barcodes { get; set; }
    public decimal Price { get; set; }
    public DateTime SourceCreateDate { get; set; }
    public DateTime? SourceModifiedDate { get; set; }
    public DateTime CreationTime { get; set; }
    public string CreatorUser { get; set; }
    public DateTime? LastModificationTime { get; set; }
    public string LastModifierUser { get; set; }

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions