From 7bd331d97bbadcd31ba584a64cde3940b6ffe592 Mon Sep 17 00:00:00 2001 From: nzdev <834725+nzdev@users.noreply.github.com> Date: Mon, 7 Dec 2020 23:14:42 +1300 Subject: [PATCH] Add from --- .../Persistence/Repositories/Implement/RelationRepository.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Core/Persistence/Repositories/Implement/RelationRepository.cs b/src/Umbraco.Core/Persistence/Repositories/Implement/RelationRepository.cs index ab699fd5f1..11ac96c7c6 100644 --- a/src/Umbraco.Core/Persistence/Repositories/Implement/RelationRepository.cs +++ b/src/Umbraco.Core/Persistence/Repositories/Implement/RelationRepository.cs @@ -289,6 +289,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement if (relationTypeAliases.Length > 0) { var query = Sql().Delete() + .From() .InnerJoin().On(x => x.RelationType, x => x.Id) .Where(x => x.ParentId == parentId); Database.Execute(query); @@ -296,6 +297,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement else { var query = Sql().Delete() + .From() .InnerJoin().On(x => x.RelationType, x => x.Id) .Where(x => x.ParentId == parentId) .WhereIn(x => x.Alias, relationTypeAliases);