Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter in List<string> not working #39

Open
akkayalper opened this issue Sep 8, 2023 · 0 comments
Open

Filter in List<string> not working #39

akkayalper opened this issue Sep 8, 2023 · 0 comments

Comments

@akkayalper
Copy link

akkayalper commented Sep 8, 2023

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; }

}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant