Merge v10/dev into infrastructure

This commit is contained in:
Nikolaj Geisle
2022-03-16 14:39:28 +01:00
481 changed files with 13916 additions and 6767 deletions

View File

@@ -1,4 +1,4 @@
using System;
using System;
using System.Linq.Expressions;
using System.Reflection;
using NPoco;
@@ -12,15 +12,6 @@ namespace Umbraco.Extensions
/// </summary>
public static class SqlSyntaxExtensions
{
private static string GetTableName(this Type type)
{
// TODO: returning string.Empty for now
// BUT the code bits that calls this method cannot deal with string.Empty so we
// should either throw, or fix these code bits...
var attr = type.FirstAttribute<TableNameAttribute>();
return string.IsNullOrWhiteSpace(attr?.Value) ? string.Empty : attr.Value;
}
private static string GetColumnName(this PropertyInfo column)
{
var attr = column.FirstAttribute<ColumnAttribute>();