You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi, I am trying to read/write a collection of objects with next structure
public class Contact
{
public int Id { get; set; }
public string Name { get; set; }
public List<string> Pets { get; set; }
public List<string> PhoneNumbers { get; set; }
}
but I have a specific requirement about how collections of Pets/PhoneNumbers should be serialised.
1 column per pet/phone number. user can have 0..100+ pets/phone numbers.
but I am having issues creating a write part for it.
(there can be a variable number of pets/phones. on average it will be in range of 1..100. I can't just always use 100 columns for each collection).
could you please advise on a best way to handle write operation for such a structure?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
hi, I am trying to read/write a collection of objects with next structure
but I have a specific requirement about how collections of Pets/PhoneNumbers should be serialised.
1 column per pet/phone number. user can have 0..100+ pets/phone numbers.
csv file should look something like
I managed to write a correct Map that is able to read this file
but I am having issues creating a write part for it.
(there can be a variable number of pets/phones. on average it will be in range of 1..100. I can't just always use 100 columns for each collection).
could you please advise on a best way to handle write operation for such a structure?
Beta Was this translation helpful? Give feedback.
All reactions