Skip to content

Commit 2eb8ee4

Browse files
authored
Fix for small problems appeared after some PR merges (#330)
PR 237 - Issue with bulk operation translation for UPDATE. Wrong IF condition PR 265 - Issue with displaying Provider instance while debugging. Wrong ref to Sources.Count in DebuggerDisplay attribute
1 parent 660dacd commit 2eb8ee4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Extensions/Xtensive.Orm.BulkOperations/Internals/SetOperation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private void AddComputedStaticExpression(AddValueContext addContext)
136136
var sqlSelect = request.Query;
137137
var exp = sqlSelect.OrderBy[0].Expression;
138138

139-
if (exp is SqlPlaceholder placeholder) {
139+
if (exp is not SqlPlaceholder placeholder) {
140140
parent.Bindings.AddRange(request.ParameterBindings);
141141
addContext.Values.Add(column, exp);
142142
return;

Orm/Xtensive.Orm/Orm/Rse/Providers/Provider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Xtensive.Orm.Rse.Providers
1717
/// Abstract base class for any query provider.
1818
/// </summary>
1919
[Serializable]
20-
[DebuggerDisplay("{DebuggerDisplayName}, Source count = {Sources.Length}")]
20+
[DebuggerDisplay("{DebuggerDisplayName}, Source count = {Sources.Count}")]
2121
public abstract class Provider
2222
{
2323
private const string ToString_ProviderTypeSuffix = "Provider";

0 commit comments

Comments
 (0)