Hi everyone,
Not sure if anyone else has seen this, but here's the problem:
I am using LLBLGEN throughout the system just fine, but for one collection class I get no records loaded, even though the generated SQL returns 4 results in a query designer.
This is the code:
ISortExpression sort = new SortExpression();
sort.Add(WithdrawReasonFields.WithdrawReason | SortOperator.Ascending);
WithdrawReasonCollection withdrawReasonCollection = new WithdrawReasonCollection();
withdrawReasonCollection.GetMulti(null, 0, sort);
Debug.WriteLine(String.Format("Withdrawal reason count: {0}.", withdrawReasonCollection.Count));
Debug.Assert(withdrawReasonCollection.Count > 0);
This is the generated output trace:
Method Enter: CreatePagingSelectDQ
Method Enter: CreateSelectDQ
Method Enter: CreateSelectDQ
Generated Sql query:
Query: SELECT "VCMS"."WITHDRAWREASON"."ID" AS "Id", "VCMS"."WITHDRAWREASON"."WITHDRAWREASON" AS "WithdrawReason" FROM "VCMS"."WITHDRAWREASON" ORDER BY "VCMS"."WITHDRAWREASON"."WITHDRAWREASON" ASC
Method Exit: CreateSelectDQ
Method Exit: CreatePagingSelectDQ: no paging.
Withdrawal reason count: 0.
And this is the result of the same query on the database, using the same login credentials as the application, through the Oracle SQL Developer Client:
SELECT Cast("VCMS"."WITHDRAWREASON"."ID" as char(32)) AS "Id",
"VCMS"."WITHDRAWREASON"."WITHDRAWREASON" AS "WithdrawReason"
FROM "VCMS"."WITHDRAWREASON"
order by "VCMS"."WITHDRAWREASON"."WITHDRAWREASON" ASC
Id WithdrawReason
-------------------------------- -----------------------------------------------------------------
5FBE4F5A4495914184884E3D4630F98A Are unable to comply ¿ did not consider flexibility.
8A8E987D641B4D43AA724E6F7704B637 Bargaining Council has jurisdiction.
993BE41563CE664DBF6C62340FB1B853 Needs are no longer there - Shutdowns are cancelled or postponed.
6D1289C6DE9B8E43BC0D4793F4439BDF Other legislation is applicable.
(Apologies for the formatting of the output, cannot seem to get it right, I also added the cast to the ID to make it readable).
I am not sure if this is related to the issue I logged here: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=6978, in particular this quote:
Otis wrote:
It indeed should use F0, F1 etc. If it doesn't, it can't read the row back into an entity anyway. Strange.
Using LLBLGEN Pro v1.0.2005.1 Final, June 19th 2006. Using Self-Servicing. Using VS 2005, ASP.NET 2. Using Oracle 10g Data Provider.
Thanks,
Brian Johnson