Repositories: Introduce and use NPoco and custom extension methods for SQL syntax in ContentTypeRepositoryBase (#19986)

* fix Umbraco.Cms.Infrastructure.Persistence.Repositories.Implement
     .ContentTypeRepositoryBase.DeletePropertyType method.

* fix more sql syntax

* fix review comments

* Fixed issues raised in code review.

---------

Co-authored-by: Andy Butland <abutland73@gmail.com>
This commit is contained in:
Dirk Seefeld
2025-09-15 12:25:11 +02:00
committed by GitHub
parent 6dc9191ad3
commit d3e6508952
5 changed files with 336 additions and 153 deletions

View File

@@ -90,6 +90,13 @@ public interface ISqlSyntaxProvider
string GetWildcardPlaceholder();
/// <summary>
/// This ensures that GetWildcardPlaceholder() character is surronded by '' when used inside a LIKE statement. E.g. in WhereLike() extension and the defaultConcat is used.
/// </summary>
/// <param name="concatDefault">When provided this overides the GetWildcardPlaceholder() default.</param>
/// <returns></returns>
string GetWildcardConcat(string concatDefault = "");
string GetStringColumnEqualComparison(string column, int paramIndex, TextColumnType columnType);
string GetStringColumnWildcardComparison(string column, int paramIndex, TextColumnType columnType);