In my C# code, I have to do an SQL Query like this :
context.ExecuteStoreQuery("SELECT * FROM MyTable WHERE Field0 = {0} AND
Field1 = {1}", field0, field1)
When field1 = null in c# and NULL in database this query doesn't work. (I have to use a different syntax with IS NULL)
How can I correct this without make an if (in reality, I have 10 fields...) ?
ObjectContext.ExecuteStoreQueryis not the same asstring.Format, despite the similarity in syntax.ObjectContext.ExecuteStoreQueryparameterizes the query automatically.