Amazon Wish List News RSS feed. Development Blog Browse the Forums  
  Overview - Downloads - Examples - News Feed - Contact Info -

Master Detail Easy Example

If you have a source file like this, separated by a |:

where the lines that begins with letters are the Customers (master records) and the lines that begins with numbers are the Orders (details records)

The two Mapping Classes are:

You need to define a Selector Method too:

Finally you must to instanciate a MasterDetailEngine and Read/Write files:

Now you have a MasterDetails array named res where every item in the array is a MasterDetails object.
If you want to access the Master or Detail objects you can use:

 

See also

Must Read - Quick Start Guide - Attributes List - F.A.Q. - Examples of Use - Contacts & Credits - Donations

© 2005-07 to Marcos Meli

FileHelpers on SourceForge
Browse the Forums Development Blog
Support the project
Devoo Software
Powered by:

Source Forge Thanks Jetbrains for support us !! Thanks BB Software for support us !! TestDriven.NET Code Coverage by Clover.NET Code Project Article Larkware News Sharp Toolbox