In the database in the Customer table there is a FirstName field. Its content may be absolutely random register, for example, "IvANov". Naturally, if I check for "Ivanov" the result will be empty. Make c.FirstName.Upper () naturally does not.
var customers = t.Customers .Where(c => c.FirstName.Contains(findToolStripTextBox.Text); The current code version (t = new mydb: DbContext). How to do it right?
StringComparer.InvariantCultureIgnoreCase - this also does not work.
@symbol of the form @ Nickname of the user (necessary for receiving notification). as an option, you can try to form a rawsqlquery of something like:context.Customers.SqlQuery("Select * from Customers where FirstName like '%@firstName%'", new SqlParameter() {});- Bald