You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varcity="Seattle";varqqlQuery=context.Database.SqlQueryRaw<UnmappedCustomer>(NormalizeDelimitersInRawString(@"SELECT * FROM [Customers] WHERE [City] = {0}"),CreateDbParameter("city",city));varquery=qqlQuery.Intersect(qqlQuery);
The test ensures that only one parameter actually gets sent to the database, but this is wrong if there's some parameter facet that differs between the two (e.g. Size). Since there's (probably?) no reliable way to compare DbParameters across providers, and detecting this doesn't seem too important, we should probably just send two parameters instead. The same is true of FromSql.