I am trying to determine the best way to map input files, such as XLS or CSV files, to objects in the system. Let me tell you a little about it. I have the following objects:
About company Contact
Each has variables, such as:
Addresses Telephone numbers Email messages, etc.
The input file I can get varies, sometimes there will be column headers, sometimes not, the column layout and numbers will change from time to time. It might look like this:
COMPANY - CONTACT - ADDRESS - PHONE
----------------------------------------------------------------------
company1 contact1 address1 phone1
company1 contact2 address2
company2 contact3 phone2
contact4 address3
The above shows that the “company” will have “addres1” and “phone1” attached to the company, “contact1” is its own object, but has “company1” as the parent object.
"contact2" ( ).
"contact4" , "3" , .
, :
- ( , . , , / - , )
IMappingLoader - ( )
- XmlMappingLoader
- DbMappingLoader
IDataLoader - ( )
- XLSLoader
- CSVLoader
, , , , .
, , - . , .
.