Castle.MonoRail.ActiveRecordScaffold.ListAction.ObtainListableProperties C# (CSharp) Method

ObtainListableProperties() private method

private ObtainListableProperties ( ActiveRecordModel model ) : IList
model Castle.ActiveRecord.Framework.Internal.ActiveRecordModel
return IList
		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;
		}