We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Have a model with a List<string> property like below
List<string>
public class RealDeduction { [DatabaseGenerated(DatabaseGeneratedOption.Identity)] [Key] public string Id { get; set; } public List<string>? Branches { get; set; } = new(); // string collection public bool IsActive { get; set; } = true; public List<PersonUser> ExcludedUsers { get; set; } = new(); // omitted other properties
then try to query it like so await _appDbContext.RealReductions.Where(x => x.Branches.Contains("Clinic")).ToListAsync()
await _appDbContext.RealReductions.Where(x => x.Branches.Contains("Clinic")).ToListAsync()
ef core not being able to perform search in the string collection
MySQL version: 10.6.12-MariaDB-0ubuntu0.22.04.1 Ubuntu 22.04 Operating system: Ubuntu 22.04 Pomelo.EntityFrameworkCore.MySql version: 8.0.2 Microsoft.AspNetCore.App version: 8.0.5
Other details about my project setup: dotnetRider
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce
Have a model with a
List<string>
property like belowthen try to query it like so
await _appDbContext.RealReductions.Where(x => x.Branches.Contains("Clinic")).ToListAsync()
The issue
ef core not being able to perform search in the string collection
Further technical details
MySQL version: 10.6.12-MariaDB-0ubuntu0.22.04.1 Ubuntu 22.04
Operating system: Ubuntu 22.04
Pomelo.EntityFrameworkCore.MySql version: 8.0.2
Microsoft.AspNetCore.App version: 8.0.5
Other details about my project setup:
dotnetRider
The text was updated successfully, but these errors were encountered: