Vidarls/Simple.Data.Mysql — Issue #10: Take() is causing StackOverflowException
Author: findel
Created: 2012-03-05 19:32:39+00:00
State: open

Calling Take(int) is causing my instance of IIS Express to terminate due to a StackOverflow exception.

My method:

public static IList

Latest()
{
return DbFactory.Db.Entries
.FindAllByActive(true)
.OrderByPublishDateDescending()
.Take(5)
.ToList

();
}

If I remove the `.Take(5)` it returns all 'active' entries ordered by 'publish date' descending, just fine.

I'm using Simple.Data.Mysql version 0.12.2.1, which I believe is the latest available (at least on NuGet)

I've managed to capture the exception in #develop debugger, and this is the stack trace if it's of help: https://gist.github.com/1980497

Regards,
Phil Baines