diff --git a/src/OrchardCore/OrchardCore.Abstractions/Shell/Models/FeatureProfile.cs b/src/OrchardCore/OrchardCore.Abstractions/Shell/Models/FeatureProfile.cs index 95cb72a6f80..a7c7a8e0261 100644 --- a/src/OrchardCore/OrchardCore.Abstractions/Shell/Models/FeatureProfile.cs +++ b/src/OrchardCore/OrchardCore.Abstractions/Shell/Models/FeatureProfile.cs @@ -9,7 +9,7 @@ public class FeatureProfile public string Name { get; set; } - public List FeatureRules = []; + public List FeatureRules { get; set; } = []; } public class FeatureRule diff --git a/src/OrchardCore/OrchardCore.Infrastructure/Documents/VolatileDocumentManager.cs b/src/OrchardCore/OrchardCore.Infrastructure/Documents/VolatileDocumentManager.cs index edb20522515..ea25f1b156d 100644 --- a/src/OrchardCore/OrchardCore.Infrastructure/Documents/VolatileDocumentManager.cs +++ b/src/OrchardCore/OrchardCore.Infrastructure/Documents/VolatileDocumentManager.cs @@ -116,7 +116,7 @@ private sealed class UpdateDelegates { public UpdateDelegate UpdateDelegateAsync; public AfterUpdateDelegate AfterUpdateDelegateAsync; - public HashSet Targets = []; + public HashSet Targets { get; set; } = []; } } } diff --git a/src/OrchardCore/OrchardCore.XmlRpc.Abstractions/XmlRpcContext.cs b/src/OrchardCore/OrchardCore.XmlRpc.Abstractions/XmlRpcContext.cs index 53efa216426..cb8ee8d6001 100644 --- a/src/OrchardCore/OrchardCore.XmlRpc.Abstractions/XmlRpcContext.cs +++ b/src/OrchardCore/OrchardCore.XmlRpc.Abstractions/XmlRpcContext.cs @@ -12,6 +12,6 @@ public class XmlRpcContext public IUrlHelper Url { get; set; } public XRpcMethodCall RpcMethodCall { get; set; } public XRpcMethodResponse RpcMethodResponse { get; set; } - public ICollection Drivers = []; + public ICollection Drivers { get; set; } = []; } }