refactor: Rename TableUpdate props to PascalCase
Makes the sdk look more polished, professional
This commit is contained in:
1 parent
1f68f47b42
commit
a515468e37
66 files changed
+554
-554
No files matched your search
@@ -3,8 +3,6 @@ namespace Bts.DataStreamCore;
|
||||
|
||||
using BCG;
|
||||
|
||||
using Bts.DataStream;
|
||||
|
||||
public class BlueRowAdapter<T> : IBlueRow {
|
||||
readonly BlueTableSchemaAdapter<T> adapter;
|
||||
readonly T data;
|
||||
|
||||
@@ -5,7 +5,6 @@ using BCG;
|
||||
|
||||
using bts.api.core;
|
||||
|
||||
using Bts.DataStream;
|
||||
using Bts.DataStreamCore;
|
||||
|
||||
using System;
|
||||
@@ -316,10 +315,10 @@ public class BlueTableImmutableAdapter<T> : IBlueRowCollection<BlueRowAdapter<T>
|
||||
}
|
||||
|
||||
public void Update<TKey>(TableUpdate<T, TKey> tableUpdate) where TKey : IEquatable<TKey> {
|
||||
foreach (var r in tableUpdate.removed.Concat(tableUpdate.changes.Old())) {
|
||||
foreach (var r in tableUpdate.RemovedItems.Concat(tableUpdate.Changes.Old())) {
|
||||
Remove(new BlueRowAdapter<T>(schemaAdapter, r).Id());
|
||||
}
|
||||
foreach (var r in tableUpdate.changed.Concat(tableUpdate.added)) {
|
||||
foreach (var r in tableUpdate.ChangedItems.Concat(tableUpdate.AddedItems)) {
|
||||
AddOrUpdate(r);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user