Scenario
I parse the letters and paste them into the database using ORM (NHibernate, to be precise). Although my current approach works technically, I don't really like it, but I can't find a better solution. The email contains 50 ~ fields and is sent from a third party and looks like this (obviously, a very short sample of a dummy file).
Field #1: Value 1 Field #2: Value 2
Field #3: Value 3 Field #4: Value 4 Field #5: Value 5
Problem
My problem is that when parsing these many fields, the database table is an absolute monster. I can’t create the correct models using any relationships or AFAIK, because each message sent is static data and does not depend on any other sources.
The only idea I have is to find common features between each field and divide them into more manageable pieces. Say 10 ~ fields per entity, so there are only 5 entities. However, I do not really like this idea or see that all I will do is create a one-to-one relationship.
What is a good way to manage a large number of properties that are uncontrollable?
Any thoughts?
source
share