'How to find string in any table column Entity Framework Core
Is there a way to query a table for records where any column contains a string?
The following would do this for a single Column, but is there a way to do this without explicitly listing every single column with or || operators?
var result = await _context.Table
.Where(tbl => tbl.Column.Contains("value"))
.ToListAsync();
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
