Merge v10/dev into infrastructure
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user