Skip to main content
added link to another question/answer
Source Link
Ben Golden
  • 3.3k
  • 15
  • 37

When you use [SitecoreChildren] Glass expects the property to be an IEnumerable<T> or IList<T>. You also should not use two different Glass attributes on the same property. You can map a property from a field or from child items, but not both.

Update: I just added this other question and answer that shows the different attributes and their uses, which may be helpful for you.

When you use [SitecoreChildren] Glass expects the property to be an IEnumerable<T> or IList<T>. You also should not use two different Glass attributes on the same property. You can map a property from a field or from child items, but not both.

When you use [SitecoreChildren] Glass expects the property to be an IEnumerable<T> or IList<T>. You also should not use two different Glass attributes on the same property. You can map a property from a field or from child items, but not both.

Update: I just added this other question and answer that shows the different attributes and their uses, which may be helpful for you.

Source Link
Ben Golden
  • 3.3k
  • 15
  • 37

When you use [SitecoreChildren] Glass expects the property to be an IEnumerable<T> or IList<T>. You also should not use two different Glass attributes on the same property. You can map a property from a field or from child items, but not both.