Hello,
We are using LLBLGen Pro version 2.6.09.0313 & Oracle 10g
I would like to introduce a simple data structure,
And I will be happy to know how to retrieve the data using LLBLGen classes and methods.
Your quick response will be highly appreciated !
The data structure (ERD) contain 3 simple tables :
Table Name : DM_DOCUMENT
Fields : DOCUMENT_ID (PK, NUMBER), DESCRIPTION (NVARCHAR2)
Table Name : FILES
Fields : FILE_ID (PK, NUMBER), DESCRIPTION (NVARCHAR2)
Table Name : DM_DOCUMENT_FILE
Fields : DOCUMENT_ID (NUMBER, FK TO DM_DOCUMENT), FILE_ID (PK, FK TO FILES, NUMBER)
Generally speaking, we have documents and files, with 1:M relation,
Each document can contain more than one file, and specific file can be associated with one document only,
For Example, the relation table (DM_DOCUMENT_FILE) can contain :
DOCUMENT_ID, FILE_ID
1 1
1 2
1 3
2 4
Which means that document 1 have three files (1,2,3), and document 2 have one file (4).
With a given document id (1 for example), how can I get all it's related files ? (1,2,3), through the relation table ?
Thank you !