public static IQueryable <Supplier> Suppliers(int count = 5) { return(Any.Sequence(x => Any.Supplier(s => { s.Id = x; s.Products = Any.Sequence(y => Any.SuppliedProduct(p => { p.Id = x * 100 + y; p.SupplierId = x; p.Supplier = s; })).ToList(); }), count).ToList().AsQueryable()); }