Skip to content

Commit a013cfb

Browse files
Merge pull request #11277 from umbraco/v9/bugfix/11081_userRepo_doesnt_retrieve_tourdata
Removed obsolete method
2 parents 846b1c4 + 80c7496 commit a013cfb

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed
Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
using System;
2-
using System.Reflection;
32
using NPoco;
4-
using Umbraco.Cms.Infrastructure.Persistence.Dtos;
53

64
namespace Umbraco.Cms.Infrastructure.Persistence
75
{
@@ -18,6 +16,7 @@ namespace Umbraco.Cms.Infrastructure.Persistence
1816
/// <para>So far, this is very manual. We don't try to be clever and figure out whether the
1917
/// columns exist already. We just ignore it.</para>
2018
/// <para>Beware, the application MUST restart when this class behavior changes.</para>
19+
/// <para>You can override the GetColmunnInfo method to control which columns this includes</para>
2120
/// </remarks>
2221
internal class UmbracoPocoDataBuilder : PocoDataBuilder
2322
{
@@ -28,19 +27,5 @@ public UmbracoPocoDataBuilder(Type type, MapperCollection mapper, bool upgrading
2827
{
2928
_upgrading = upgrading;
3029
}
31-
32-
protected override ColumnInfo GetColumnInfo(MemberInfo mi, Type type)
33-
{
34-
var columnInfo = base.GetColumnInfo(mi, type);
35-
36-
// TODO: Is this upgrade flag still relevant? It's a lot of hacking to just set this value
37-
// including the interface method ConfigureForUpgrade for this one circumstance.
38-
if (_upgrading)
39-
{
40-
if (type == typeof(UserDto) && mi.Name == "TourData") columnInfo.IgnoreColumn = true;
41-
}
42-
43-
return columnInfo;
44-
}
4530
}
4631
}

0 commit comments

Comments
 (0)