Skip to content

Commit ca80ecf

Browse files
committed
Merge remote-tracking branch 'origin/v9/9.0' into v9/9.0
2 parents a649287 + a013cfb commit ca80ecf

File tree

2 files changed

+8
-16
lines changed

2 files changed

+8
-16
lines changed

src/Umbraco.Core/Configuration/Models/RuntimeMinificationSettings.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public class RuntimeMinificationSettings
77
{
88
internal const bool StaticUseInMemoryCache = false;
99
internal const string StaticCacheBuster = "Version";
10+
internal const string StaticVersion = null;
1011

1112
/// <summary>
1213
/// Use in memory cache
@@ -19,5 +20,11 @@ public class RuntimeMinificationSettings
1920
/// </summary>
2021
[DefaultValue(StaticCacheBuster)]
2122
public RuntimeMinificationCacheBuster CacheBuster { get; set; } = Enum<RuntimeMinificationCacheBuster>.Parse(StaticCacheBuster);
23+
24+
/// <summary>
25+
/// The unique version string used if CacheBuster is 'Version'.
26+
/// </summary>
27+
[DefaultValue(StaticVersion)]
28+
public string Version { get; set; } = StaticVersion;
2229
}
2330
}
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)