My property
declaration in the parent is:
private static PropertyInfo<Sizes> SizesProperty = RegisterProperty<Sizes>(typeof(Sizes), new PropertyInfo<Sizes>("Sizes"));
Trying to load the
Sizes child collection in DataPortal_Fetch of the parent.
LoadProperty<Sizes>(SizesProperty, Sizes.GetSizes(repository));
The Sizes object is
pretty straight forward and has no properties at all.
[Serializable()]
public class Sizes : Csla.BusinessListBase<Sizes, Size>
{
BTW generated with codesmith 3.6 templates.
The Size class also
generated with codesmith templates, has only two properties.
[Serializable()]
public class Size : Csla.BusinessBase<Size>
{
#region Business Properties and Methods
//register properties
private static PropertyInfo<int> IdProperty = RegisterProperty<int>(typeof(Size), new PropertyInfo<int>("Id"));
private static PropertyInfo<string> DescriptionProperty = RegisterProperty<string>(typeof(Size), new PropertyInfo<string>("Description"));
The data is fetched from the child, but the LoadProperty in the parent fails with the error as above and I just don't know what it really means. The object Sizes has no properties, so I don't know what the error is referring to.
I'm using CSLA 3.6.3
Any insight would be great. By the way I do have the Business objects 2008 book. I didn't find any help in there.
Thanks in advance.
Copyright (c) Marimer LLC