My SQL query against a particular view returns me 3 different rows.
select * from vwSummary
where vidate >= \'10-15-2010\' and vidate <= \'10-15-2010\'
I just experienced this issue and thought it was my implementation until I found this post. The only workaround I managed to get working was to actually run the sqlquery as follows:-
using(var db = new Tpr.Models.MyContext())
{
var model = _uow._context.Database.SqlQuery(string.Format("select * from MyTable where ID = '{0}'", "12345678"));
Assert.IsNotNull(model);
}