The AsStreaming extensión method in IDbSet' throw the assertion in DbHelpers.CreateStreamingQuery because query==null.
class Program
{
static void Main(string[] args)
{
using (var unitOfWork = new UoW())
{
unitOfWork.Entities.AsStreaming();
}
}
}
public class Entity
{
public int Id { get; set; }
}
public class UoW : DbContext
{
public IDbSet<Entity> Entities { get; set; }
}
class Program
{
static void Main(string[] args)
{
using (var unitOfWork = new UoW())
{
unitOfWork.Entities.AsStreaming();
}
}
}
public class Entity
{
public int Id { get; set; }
}
public class UoW : DbContext
{
public IDbSet<Entity> Entities { get; set; }
}