diff --git a/src/Umbraco.Core/Persistence/PetaPoco.cs b/src/Umbraco.Core/Persistence/PetaPoco.cs index ae0eb39ec9..d60525a91c 100644 --- a/src/Umbraco.Core/Persistence/PetaPoco.cs +++ b/src/Umbraco.Core/Persistence/PetaPoco.cs @@ -1795,10 +1795,7 @@ namespace Umbraco.Core.Persistence bool ExplicitColumns = t.GetCustomAttributes(typeof(ExplicitColumnsAttribute), true).Length > 0; Columns = new Dictionary(StringComparer.OrdinalIgnoreCase); - //MCH NOTE: Changing bindingflags and using GetAllProperties() to include internal - //properties as well as work for interfaces by flattening the hierarchy. - var properties = t.GetAllProperties(); - foreach (var pi in properties) + foreach (var pi in t.GetProperties()) { // Work out if properties is to be included var ColAttrs = pi.GetCustomAttributes(typeof(ColumnAttribute), true);