src/Misc/EFTools/EntityDesignModel/Mapping/ScalarProperty.cs
/// <summary>
///     Returns a list of all parent ComplexProperties (might be empty)
/// </summary>
/// <param name="orderDescending">If true, the resulting list will contain the root ComplexProperty, its child, etc.</param>
/// <returns></returns>
Returns a list of all parent ComplexProperties (might be empty)
Returns a list of all parent ComplexProperties ( might be empty )
internal List<ComplexProperty> GetParentComplexProperties(bool orderDescending = true)
        {
            var properties = new List<ComplexProperty>();
            var complexProperty = Parent as ComplexProperty;
            while (complexProperty != null)
            {
                if (orderDescending)
                {
                    properties.Insert(0, complexProperty);
                }
                else
                {
                    properties.Add(complexProperty);
                }
                complexProperty = complexProperty.Parent as ComplexProperty;
            }
            return properties;
        }
internal List < ComplexProperty > GetParentComplexProperties ( bool orderDescending = true ) { var properties = new List < ComplexProperty > ( ) ; var complexProperty = Parent as ComplexProperty ; while ( complexProperty != null ) { if ( orderDescending ) { properties . Insert ( 0 , complexProperty ) ; } else { properties . Add ( complexProperty ) ; } complexProperty = complexProperty . Parent as ComplexProperty ; } return properties ; }
Returns a list of all parent ComplexProperties (might be empty)
Returns a list of all parent ComplexProperties ( might be empty )
None
orderDescending
bool
If true, the resulting list will contain the root ComplexProperty, its child, etc.
If true the resulting list will contain the root ComplexProperty its child etc .