diff --git a/src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs b/src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs
index 33b1803169a3..2c22caf87d70 100644
--- a/src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs
+++ b/src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs
@@ -17,13 +17,14 @@ public static class PublishedElementExtensions
///
/// Gets the value of a property.
///
- public static TValue GetValue(this TModel model, Expression> property, string culture = null, string segment = null, Fallback fallback = default, TValue defaultValue = default)
+ public static TValue ValueByExpression(this TModel model, Expression> property, string culture = null, string segment = null, Fallback fallback = default, TValue defaultValue = default)
where TModel : IPublishedElement
{
var alias = GetAlias(model, property);
return model.Value(alias, culture, segment, fallback, defaultValue);
}
+ //This cannot be public due to ambiguous issue with external ModelsBuilder if we do not rename.
private static string GetAlias(TModel model, Expression> property)
{
if (property.NodeType != ExpressionType.Lambda)