diff --git a/Signum.Engine/Operations/Graph.cs b/Signum.Engine/Operations/Graph.cs index acda29d67b..d19a8d4adf 100644 --- a/Signum.Engine/Operations/Graph.cs +++ b/Signum.Engine/Operations/Graph.cs @@ -459,7 +459,6 @@ public class Execute : _Execute, IExecuteOperation Type? IOperation.ReturnType { get { return null; } } Type? IOperation.StateType { get { return null; } } public bool AvoidImplicitSave { get; set; } - public bool AvoidImplicitSave { get; set; } Type IEntityOperation.BaseType { get { return Symbol.BaseType; } } bool IEntityOperation.HasCanExecute { get { return CanExecute != null; } } diff --git a/Signum.Utilities/Extensions/StringExtensions.cs b/Signum.Utilities/Extensions/StringExtensions.cs index f9a3432c62..0773154ae1 100644 --- a/Signum.Utilities/Extensions/StringExtensions.cs +++ b/Signum.Utilities/Extensions/StringExtensions.cs @@ -34,10 +34,10 @@ public static string DefaultText(this string? str, string defaultText) } #pragma warning disable IDE0052 // Remove unread private members - static readonly Expression> EmtpyToNullExpression = a => a == null || a.Length == 0 ? null : a; + static readonly Expression> DefaultToNullExpression = a => a == null || a.Length == 0 ? null : a; #pragma warning restore IDE0052 // Remove unread private members [ExpressionField("EmtpyToNullExpression")] - public static string? EmtpyToNull(this string? str) + public static string? DefaultToNull(this string? str) { if (!str.HasText()) return null; @@ -836,15 +836,5 @@ public static string[] SplitNoEmpty(this string text, params char[] separators) { return text.Split(separators, StringSplitOptions.RemoveEmptyEntries); } - - public static string EmptyToNull(this string text) - { - return string.IsNullOrEmpty(text) ? null : text; - } - - public static string WhiteSpaceToNull(this string text) - { - return string.IsNullOrWhiteSpace(text) ? null : text; - } } } diff --git a/Signum.Utilities/Reflection/TupleExtensions.cs b/Signum.Utilities/Reflection/TupleExtensions.cs index 4696ec5cef..2326b8796e 100644 --- a/Signum.Utilities/Reflection/TupleExtensions.cs +++ b/Signum.Utilities/Reflection/TupleExtensions.cs @@ -16,7 +16,9 @@ public static bool IsTuple(Type type) private static bool IsTupleDefinition(Type genericTypeDefinition) { - return genericTypeDefinition == TupleOf(genericTypeDefinition.GetGenericArguments().Length); + var numParameters = genericTypeDefinition.GetGenericArguments().Length; + + return numParameters <= 8 && genericTypeDefinition == TupleOf(numParameters); } public static Type TupleOf(int numParameters)