in my c# application I have multiple transactions which are made up of multiple records with each record having a set number of fields
Trans Trans Trans
Name Seq Type Description Instruction etc..
Tran1 001 T start
Tran1 002 I xxxxxxxxx yyyyyyyyy
Tran1 003 L xxxxxxxxx yyyyyyyyy
Tran1 100 T End
I want to define a class called "transaction" and to be able to read the entire collection of records in the transaction into this class rather than just have 1 record of the transaction in the class. The transactions also have a transaction header record which holds defaults for the transaction which I would like to have included in the class. I'm thinking that the best way to do this is by using collections. 1 collection for the transaction detail records, another for the transaction header. Is this a suitable approach to creating a class for my transactions. Any advice welcome.