Skip to content

Commit 0d44c08

Browse files
committed
Set isExtendedAttribute during Load()
Set the new optional `isExtendedAttribute` parameter of `AttributeValueCollection.SetValue()` (10c7c09) during `Load()` as part of the `SetIndexedAttributes()` and `SetExtendedAttributes()` extension methods. This ensures that this value is set on the underlying `AttributeValue`, and is available later to detect potential `IsExtendedAttribute` mismatches.
1 parent 10c7c09 commit 0d44c08

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

OnTopic.Data.Sql/SqlDataReaderExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ private static void SetIndexedAttributes(this SqlDataReader reader, Dictionary<i
203203
/*------------------------------------------------------------------------------------------------------------------------
204204
| Set attribute value
205205
\-----------------------------------------------------------------------------------------------------------------------*/
206-
current.Attributes.SetValue(attributeKey, attributeValue, false, version);
206+
current.Attributes.SetValue(attributeKey, attributeValue, false, version, false);
207207

208208
}
209209

@@ -274,7 +274,7 @@ private static void SetExtendedAttributes(this SqlDataReader reader, Dictionary<
274274
| Set attribute value
275275
\---------------------------------------------------------------------------------------------------------------------*/
276276
if (String.IsNullOrEmpty(attributeValue)) continue;
277-
current.Attributes.SetValue(attributeKey, attributeValue, false, version);
277+
current.Attributes.SetValue(attributeKey, attributeValue, false, version, true);
278278

279279
} while (xmlReader.Name == "attribute");
280280

0 commit comments

Comments
 (0)