public void JoinOfNestedUnionsWithLimit()
{
using (testEntities context = new testEntities())
{
var q = context.Books.Include("Author");
q = q.Include("Publisher");
q = q.Include("Publisher.Books");
string sql = q.ToTraceString();
CheckSql(sql, SQLSyntax.JoinOfNestedUnionsWithLimit);
foreach (var o in q.Where(p => p.Id > 0).OrderBy(p => p.Name).ThenByDescending(p => p.Id).Skip(0).Take(32).ToList())
{
}
}
}