private IList ObtainListableProperties(ActiveRecordModel model)
{
ArrayList properties = new ArrayList();
ObtainPKProperty();
if (model.Parent != null)
{
properties.AddRange( ObtainListableProperties(model.Parent) );
}
foreach(PropertyModel propModel in model.Properties)
{
if (IsNotSupported(propModel.Property.PropertyType)) continue;
properties.Add(propModel.Property);
}
foreach(PropertyInfo prop in model.NotMappedProperties)
{
if (IsNotSupported(prop.PropertyType)) continue;
properties.Add(prop);
}
return properties;
}