IEnumerable not saving as multiple attributes?

Mar 16, 2010 at 7:44 PM

Hi,
In my class, i have an IEnumerable<string>
This does not save to SimpleDB, however if it is a List<string> it does -
How can i get the IEnumerable to save correctly?

Mar 16, 2010 at 8:13 PM

IEnumerable<T> is not supported for list properties. You need to at minimum use a concrete type that implements ICollection<T> and has a no-arg constructor. The reason is that ICollection.Add() is used to populate the list when returning data from SimpleDB and the concrete type must be known by Savant in order to instantiate the property value.