From bcccc37f9339df142fdd9144d9feb503eee2c4d3 Mon Sep 17 00:00:00 2001 From: Morten Christensen Date: Sat, 29 Dec 2012 18:17:16 -0100 Subject: [PATCH] Changing t.GetAllProperties back to original t.GetProperties to avoid the use of binding flags, which is no longer necessary after having refactored the querying. --- src/Umbraco.Core/Persistence/PetaPoco.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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);