I have a linq query
var x = c from context.customers
where c.Name == ''
and
var x = c from context.customers
where c.Name == ' '
I have a customername column in SQL 2008 database, with varchar(50) and one customer is blank and other has a space, but the TSQL generated by Linq is right but return for both queries return both customers and not 1 record which I want, which is either blank or has a whitespace. I know the underlying problem is a SQL server issue as per this question asked.
SQL Server 2008 Empty String Vs Space
I want to modify my Linq query. how can I do this? without using SQL server T-SQL commands in linq.