
<rss version="2.0">
<channel>
    <title>LLBLGen.com Forums Bugs &amp; Issues feed</title>
    <link>http://llblgen.com/TinyForum/Threads.aspx?ForumID=10</link>
    <description>This is the RSS feed for the forum Bugs &amp; Issues on the LLBLGen.com Forums forum system.</description>
    <ttl>30</ttl>
    <language>en-us</language>

	
		<item>
			<title>ORMQueryConstructionException when scrolling in ServerMode by BaerlinEDV</title>
			<description>&lt;span&gt;Hello daelmo,&lt;br&gt;&lt;br&gt;I adjusted the link I posted yesterday, sorry for that.&lt;br&gt;&lt;br&gt;The LINQ-query causing the problem also slightly differs from the one I posted before, sorry for any inconveniences that may have caused. (That's because we're trying to break down the problems to a simple level where it still occurs. I'll post the actual query we're aiming for at the end of this post.)&lt;br&gt;&lt;br&gt;The exact query to reproduce the problem is:&lt;br&gt;&lt;table width=&quot;95%&quot; align=&quot;center&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot;&gt;
    &lt;tr&gt;
      &lt;td align=&quot;left&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class=&quot;CodeText&quot;&gt;&lt;code&gt;Dim q = From belKomm In metaData.CoBelegKommunikation _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Select New With { _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;belKomm.BelegKommId _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;&lt;br&gt;&lt;br&gt;If I use the query from the initial post (without &quot;Select New With ...&quot;), then the retrieved rows are actually limited to the amount of rows specified in the take()-part of the LINQ-trace&lt;br&gt;&lt;br&gt;Here's the CREATE TABLE DDL for that table:&lt;br&gt;&lt;table width=&quot;95%&quot; align=&quot;center&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot;&gt;
    &lt;tr&gt;
      &lt;td align=&quot;left&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class=&quot;CodeText&quot;&gt;&lt;code&gt;CREATE TABLE [dbo].[CO_Beleg_Kommunikation] &lt;br&gt;(&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Beleg_Komm_ID] [int] IDENTITY (1,1) NOT NULL, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Beleg_ID] [int] NOT NULL, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Status_ID] [int] NOT NULL, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[DatumEingereicht] [datetime] NULL, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[DatumLetztePruefung] [datetime] NULL, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[DatumEntscheidung] [datetime] NULL, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Logging_ID_Aktuell] [int] NULL, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[KoTr_IK] [nvarchar] (9) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Regionaldirektion_IK] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Vorgang_Art_ID] [int] NOT NULL, &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[Beleg_ID_Extern] [nvarchar] (50) COLLATE SQL_Latin1_General_CP1_CI_AS NULL &lt;br&gt;) ON [PRIMARY]&lt;br&gt;GO&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;&lt;br&gt;&lt;br&gt;Here's the trace from when the datasource is first bound to the grid:&lt;br&gt;&lt;table width=&quot;95%&quot; align=&quot;center&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot;&gt;
    &lt;tr&gt;
      &lt;td align=&quot;left&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class=&quot;CodeText&quot;&gt;&lt;code&gt;: Initial expression to process:&lt;br&gt;value(SD.LLBLGen.Pro.LinqSupportClasses.DataSource`1[DL.EntityClasses.CoBelegKommunikationEntity]).Select(belKomm =&amp;gt; new VB$AnonymousType_2`1(BelegKommId = belKomm.BelegKommId)).Count()&lt;br&gt;&quot;Patientenbetreuung.vshost.exe&quot; (Verwaltet (v4.0.30319)): &quot;Anonymously Hosted DynamicMethods Assembly&quot; geladen&lt;br&gt;Method Enter: CreatePagingSelectDQ&lt;br&gt;Method Enter: CreateSelectDQ&lt;br&gt;Method Enter: CreateSelectDQ&lt;br&gt;Method Enter: CreateSubQuery&lt;br&gt;Method Enter: CreateSelectDQ&lt;br&gt;Method Enter: CreateSelectDQ&lt;br&gt;Generated Sql query: &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Query: SELECT [LPLA_1].[Beleg_Komm_ID] AS [BelegKommId] FROM [IPV].[dbo].[CO_Beleg_Kommunikation]  [LPLA_1]  &lt;br&gt;Method Exit: CreateSelectDQ&lt;br&gt;Method Exit: CreateSubQuery&lt;br&gt;Generated Sql query: &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Query: SELECT TOP(@p2) COUNT(*) AS [LPAV_] FROM (SELECT [LPLA_1].[Beleg_Komm_ID] AS [BelegKommId] FROM [IPV].[dbo].[CO_Beleg_Kommunikation]  [LPLA_1]  ) [LPA_L1]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Parameter: @p2 : Int64. Length: 0. Precision: 0. Scale: 0. Direction: Input. Value: 1.&lt;br&gt;Method Exit: CreateSelectDQ&lt;br&gt;Method Exit: CreatePagingSelectDQ: no paging.&lt;br&gt;: Initial expression to process:&lt;br&gt;value(SD.LLBLGen.Pro.LinqSupportClasses.DataSource`1[DL.EntityClasses.CoBelegKommunikationEntity]).Select(belKomm =&amp;gt; new VB$AnonymousType_2`1(BelegKommId = belKomm.BelegKommId)).OrderBy(Param_0 =&amp;gt; Param_0.BelegKommId).Take(128)&lt;br&gt;Method Enter: CreatePagingSelectDQ&lt;br&gt;Method Enter: CreateSelectDQ&lt;br&gt;Method Enter: CreateSelectDQ&lt;br&gt;Method Enter: CreateSubQuery&lt;br&gt;Method Enter: CreateSelectDQ&lt;br&gt;Method Enter: CreateSelectDQ&lt;br&gt;Generated Sql query: &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Query: SELECT [LPLA_1].[Beleg_Komm_ID] AS [BelegKommId] FROM [IPV].[dbo].[CO_Beleg_Kommunikation]  [LPLA_1]  &lt;br&gt;Method Exit: CreateSelectDQ&lt;br&gt;Method Exit: CreateSubQuery&lt;br&gt;Generated Sql query: &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Query: SELECT [LPA_L1].[BelegKommId] FROM (SELECT [LPLA_1].[Beleg_Komm_ID] AS [BelegKommId] FROM [IPV].[dbo].[CO_Beleg_Kommunikation]  [LPLA_1]  ) [LPA_L1] ORDER BY [LPA_L1].[BelegKommId] ASC&lt;br&gt;Method Exit: CreateSelectDQ&lt;br&gt;Method Exit: CreatePagingSelectDQ: no paging.&lt;br&gt;&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;&lt;br&gt;&lt;br&gt;As stated before, the query to reproduce the problem is just a small part of the one we're actually trying to get to work.&lt;br&gt;The full query at that time is this one:&lt;br&gt;&lt;table width=&quot;95%&quot; align=&quot;center&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot;&gt;
    &lt;tr&gt;
      &lt;td align=&quot;left&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class=&quot;CodeText&quot;&gt;&lt;code&gt;Dim q = From belKomm In metaData.CoBelegKommunikation _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Join bel In metaData.BgBeleg On belKomm.BelegId Equals bel.BelegId _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Join sta In metaData.CoHStatusBelegKommunikation On belKomm.StatusId Equals sta.StatusId _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Join vart In metaData.CoHVorgangArt On belKomm.VorgangArtId Equals vart.VorgangArtId _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Select New With { _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;belKomm.BelegKommId, _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;belKomm.BelegId, _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bel.Belegnummer, _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;bel.Belegdatum, _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;belKomm.StatusId, _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sta.Bezeichnung, _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;belKomm.DatumEingereicht, _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;belKomm.DatumLetztePruefung, _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;belKomm.DatumEntscheidung, _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;belKomm.KoTrIk, _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;belKomm.RegionaldirektionIk, _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;vart.VorgangArtBezeichnung, _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;belKomm.LoggingIdAktuell _&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;&lt;br&gt;&lt;br&gt;If I missed any information out, please let me know, and I'll try to update this as soon as possible.&lt;br&gt;&lt;br&gt;Best regards,&lt;br&gt;Philipp&lt;/span&gt;</description>
			<author>BaerlinEDV</author>
			<link>http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18602&amp;StartAtMessage=0#104438</link>
			<pubDate>Tue, 07 Sep 2010 07:57:15 GMT</pubDate>
			<category>ORMQueryConstructionException when scrolling in ServerMode</category>
			<guid isPermaLink="true">http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18602&amp;StartAtMessage=0#104438</guid>
		</item>
	
		<item>
			<title>ORMQueryConstructionException when scrolling in ServerMode by daelmo</title>
			<description>&lt;span&gt;&lt;table width=&quot;95%&quot; align=&quot;center&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot;&gt;
    &lt;tr&gt;
      &lt;td align=&quot;left&quot;&gt;&lt;b&gt;BaerlinEDV wrote:&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class=&quot;QuoteText&quot;&gt;&lt;br&gt;(I linked this thread in the other thread, so I'll post the link here, too, just that everyone knows what's going on:&lt;br&gt;&lt;a href=&quot;http://beta.devexpress.com/Support/Center/Issues/EditIssue.aspx?issueid=Q273129&quot; target=&quot;_blank&quot;&gt;http://beta.devexpress.com/Support/Center/Issues/EditIssue.aspx?issueid=Q273129&lt;/a&gt;&lt;br&gt;I'll update this thread wheather what I described above is confirmed or not.)&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;&lt;br&gt;The link is for edit the issue. Please post the link to view the issue.&lt;br&gt;&lt;br&gt;&lt;table width=&quot;95%&quot; align=&quot;center&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot;&gt;
    &lt;tr&gt;
      &lt;td align=&quot;left&quot;&gt;&lt;b&gt;BaerlinEDV wrote:&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class=&quot;QuoteText&quot;&gt;What bothered us when looking at the traces is, that when comparing the LINQ-tracing-output to the SQL-output and the SQL Server Profiler-output. In LINQ (tracing level 3) a &quot;take(128)&quot;-select is being generated, but on the SQL Server Profiler and in the SQL-output (tracing level 4) the rows requested from the server don't seem to be limited to 128. The dynamic behaviour between the Grid in ServerMode and the LINQ-query make it really hard to confirm the count of rows that are being requested from the server; is there any preferred way to ensure that when the Grid and the datasource are initialized completely, only a certain amount of rows were fetched until that point of time? (Trying to display the rows via the VS results ended up in another SELECT on the SQL-Server, so that doesn't really us here.)&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;&lt;br&gt;So the generated code in LLBLGen tracing and SQL profiler doesn't reflect the  LIMIT. This could be due to the type of some fields on your entity. Please post the  CREATE TABLE DDL for that table.&lt;br&gt;&lt;/span&gt;</description>
			<author>daelmo</author>
			<link>http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18602&amp;StartAtMessage=0#104428</link>
			<pubDate>Tue, 07 Sep 2010 02:29:43 GMT</pubDate>
			<category>ORMQueryConstructionException when scrolling in ServerMode</category>
			<guid isPermaLink="true">http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18602&amp;StartAtMessage=0#104428</guid>
		</item>
	
		<item>
			<title>ORMQueryConstructionException when scrolling in ServerMode by BaerlinEDV</title>
			<description>&lt;span&gt;Hi daelmo,&lt;br&gt;&lt;br&gt;thanks for that hint. I posted a request in the corresponding Support Center of DevExpress and there indeed is a way to disable skipping and force take instead.&lt;br&gt;After studying the traces, just like you suggested, it seems like the Grid first tries to use skipping, and switches to take instead if skipping fails.&lt;br&gt;(I linked this thread in the other thread, so I'll post the link here, too, just that everyone knows what's going on:&lt;br&gt;&lt;a href=&quot;http://www.devexpress.com/Support/Center/p/Q273129.aspx&quot; target=&quot;_blank&quot;&gt;http://www.devexpress.com/Support/Center/p/Q273129.aspx&lt;/a&gt;&lt;br&gt;I'll update this thread wheather what I described above is confirmed or not.)&lt;br&gt;&lt;br&gt;What bothered us when looking at the traces is, that when comparing the LINQ-tracing-output to the SQL-output and the SQL Server Profiler-output. In LINQ (tracing level 3) a &quot;take(128)&quot;-select is being generated, but on the SQL Server Profiler and in the SQL-output (tracing level 4) the rows requested from the server don't seem to be limited to 128. The dynamic behaviour between the Grid in ServerMode and the LINQ-query make it really hard to confirm the count of rows that are being requested from the server; is there any preferred way to ensure that when the Grid and the datasource are initialized completely, only a certain amount of rows were fetched until that point of time? (Trying to display the rows via the VS results ended up in another SELECT on the SQL-Server, so that doesn't really us here.)&lt;br&gt;&lt;br&gt;Edit: Corrected the link posted&lt;/span&gt;</description>
			<author>BaerlinEDV</author>
			<link>http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18602&amp;StartAtMessage=0#104418</link>
			<pubDate>Mon, 06 Sep 2010 14:59:06 GMT</pubDate>
			<category>ORMQueryConstructionException when scrolling in ServerMode</category>
			<guid isPermaLink="true">http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18602&amp;StartAtMessage=0#104418</guid>
		</item>
	
		<item>
			<title>Typeconverters not loading by Otis</title>
			<description>&lt;span&gt;In the next build, we'll include a specific small .exe for this: LLBLGenPro_NET40.exe. This small .exe is build against .net 4 and will enforce the designer to run on .net 4.0. We use the similar trick as with running the designer as 32bit app on a 64bit OS. We'll also add a section to the documentation illustrating this.&lt;br&gt;&lt;br&gt;We decided not to add an installer thingy for this, because you might switch to .net 4 after you've installed plus writing the page for the installer was a cumbersome exercise, so we opted for this instead. &lt;/span&gt;</description>
			<author>Otis</author>
			<link>http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18557&amp;StartAtMessage=0#104407</link>
			<pubDate>Mon, 06 Sep 2010 12:00:53 GMT</pubDate>
			<category>Typeconverters not loading</category>
			<guid isPermaLink="true">http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18557&amp;StartAtMessage=0#104407</guid>
		</item>
	
		<item>
			<title>Missing field in v3 by Otis</title>
			<description>&lt;span&gt;It would be best if you attached the project  file and pointed out which relationship etc. it's about. If you want to keep it hidden, please open a helpdesk thread and attach it there (please refer to this thread there for clarity &lt;img src=&quot;pics/smileywink.gif&quot; border=&quot;0&quot; alt=&quot;Wink&quot;&gt;)&lt;/span&gt;</description>
			<author>Otis</author>
			<link>http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18617&amp;StartAtMessage=0#104394</link>
			<pubDate>Mon, 06 Sep 2010 07:56:29 GMT</pubDate>
			<category>Missing field in v3</category>
			<guid isPermaLink="true">http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18617&amp;StartAtMessage=0#104394</guid>
		</item>
	
		<item>
			<title>Missing field in v3 by JMitchell</title>
			<description>&lt;span&gt;That's right. The FK field in Invoice exists, you can see it in the project explorer but it, and the relationship, aren't in the Catalog Explorer&lt;/span&gt;</description>
			<author>JMitchell</author>
			<link>http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18617&amp;StartAtMessage=0#104392</link>
			<pubDate>Mon, 06 Sep 2010 07:55:02 GMT</pubDate>
			<category>Missing field in v3</category>
			<guid isPermaLink="true">http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18617&amp;StartAtMessage=0#104392</guid>
		</item>
	
		<item>
			<title>GetEnumerator  not found on foreach in MVC app. by daelmo</title>
			<description>&lt;span&gt;I can't reproduce your problem. I successfully made a Northwind MVC app using LLBLGen v3. &lt;br&gt;Please generate the code again, this time in an empty folder and try again. I suspect there is something wrong in your old folders (maybe old files or something like that). &lt;br&gt;&lt;br&gt;If you can't resolve it, please post more information that help us to reproduce the problem. Maybe a tiny repro application that reproduces the problem would be helpful.&lt;/span&gt;</description>
			<author>daelmo</author>
			<link>http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18622&amp;StartAtMessage=0#104383</link>
			<pubDate>Mon, 06 Sep 2010 02:25:07 GMT</pubDate>
			<category>GetEnumerator  not found on foreach in MVC app.</category>
			<guid isPermaLink="true">http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18622&amp;StartAtMessage=0#104383</guid>
		</item>
	
		<item>
			<title>LLBLGen 2.6 Final and Visual Studio 2008 by BB</title>
			<description>&lt;span&gt;That seems to have fixed the problems with the checkbox, it will take me a little longer to verify that the SelectParameter is working now.&lt;/span&gt;</description>
			<author>BB</author>
			<link>http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18608&amp;StartAtMessage=0#104368</link>
			<pubDate>Fri, 03 Sep 2010 21:39:02 GMT</pubDate>
			<category>LLBLGen 2.6 Final and Visual Studio 2008</category>
			<guid isPermaLink="true">http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18608&amp;StartAtMessage=0#104368</guid>
		</item>
	
		<item>
			<title>GetEnumerator  not found on foreach in MVC app. by quentinjs</title>
			<description>&lt;span&gt;It turns out I had not resolved myearlier problem. I am using MVC and am getting this error, this used to work last year, and I've checked all my reference versions since I've moved to LLBL V3.&lt;br&gt;&lt;br&gt;&lt;table width=&quot;95%&quot; align=&quot;center&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot;&gt;
    &lt;tr&gt;
      &lt;td align=&quot;left&quot;&gt;&lt;b&gt;Quote:&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class=&quot;QuoteText&quot;&gt;Error&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;foreach statement cannot operate on variables of type 'object' because 'object' does not contain a public definition for 'GetEnumerator'&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;c:\Projects\glossary-mvc\Index.aspx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;&lt;br&gt;&lt;br&gt;for reference the index.aspx line in question is this&lt;br&gt;&lt;br&gt;&lt;table width=&quot;95%&quot; align=&quot;center&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot;&gt;
    &lt;tr&gt;
      &lt;td align=&quot;left&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class=&quot;CodeText&quot;&gt;&lt;code&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;% foreach (var item in Model) { %&amp;gt;&lt;br&gt;&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;&lt;br&gt;&lt;br&gt;and I have done a google on this and I have the MVC ASPX page set up correctly as follows:&lt;br&gt;&lt;br&gt;&lt;table width=&quot;95%&quot; align=&quot;center&quot; border=&quot;0&quot; cellspacing=&quot;1&quot; cellpadding=&quot;2&quot;&gt;
    &lt;tr&gt;
      &lt;td align=&quot;left&quot;&gt;&lt;b&gt;Code:&lt;/b&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td class=&quot;CodeText&quot;&gt;&lt;code&gt;&amp;lt;%@ Page Title=&quot;&quot; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Language=&quot;C#&quot; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;MasterPageFile=&quot;~/Views/Shared/Site.Master&quot; &lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Inherits=&quot;System.Web.Mvc.ViewPage&amp;lt;IEnumerable&amp;lt;glossaryDB.EntityClasses.AssociationTypeEntity&amp;gt;&amp;gt;&quot;&lt;br&gt;%&amp;gt;&lt;br&gt;&lt;/code&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;So I went looking for the GetEnumerator for my EntityClass and I can't see one, was this removed in V3 or moved?  &lt;br&gt;&lt;br&gt;Suggestions ?&lt;br&gt;&lt;br&gt;&lt;/span&gt;</description>
			<author>quentinjs</author>
			<link>http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18622&amp;StartAtMessage=0#104362</link>
			<pubDate>Fri, 03 Sep 2010 19:08:53 GMT</pubDate>
			<category>GetEnumerator  not found on foreach in MVC app.</category>
			<guid isPermaLink="true">http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18622&amp;StartAtMessage=0#104362</guid>
		</item>
	
		<item>
			<title>Missing field in v3 by Otis</title>
			<description>&lt;span&gt;So i.o.w. there's no FK field in Invoice for this relationship? It should have an FK field for the relationship. (it should have been added automatically). &lt;/span&gt;</description>
			<author>Otis</author>
			<link>http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18617&amp;StartAtMessage=0#104355</link>
			<pubDate>Fri, 03 Sep 2010 16:05:03 GMT</pubDate>
			<category>Missing field in v3</category>
			<guid isPermaLink="true">http://llblgen.com/TinyForum/Messages.aspx?ThreadID=18617&amp;StartAtMessage=0#104355</guid>
		</item>
	
</channel>
</rss>  
