llblgen Pro version 2.0 ,
Adapters,
Oracle,
.NET 2005
I am trying to simulate the following query in llblgen
select a.* , b.* from
personel a, personel_nufus_bilgi b
where a.sicil_no = b.sicil_no(+)
I create a typed list as PersonelNufusRel and the main table is Personel and the related table is TablePersonelNufusBilgi. There are 335 records in the first table and 1 record in the second table and i want to retrieve all of the data in the first table with the related ones in the second table.
And I tried the following;
ConfidaDB.TypedListClasses.PersonelNufusRelTypedList PersonelNufus = new ConfidaDB.TypedListClasses.PersonelNufusRelTypedList();
IRelationPredicateBucket bucket = PersonelNufus.GetRelationInfo();
bucket.Relations.Add(PersonelEntity.Relations.PersonelNufusBilgiEntityUsingSicilNo, JoinHint.Right);
bucket.Relations.ObeyWeakRelations = true;
ISortExpression sorter = new SortExpression(PersonelFields.SicilNo | SortOperator.Ascending);
_adapter.FetchTypedList(PersonelNufus.GetFieldsInfo(), PersonelNufus, bucket, 0, sorter, false);
But it only retrieves one record what is the problem?