refactor: Replace DataPacket w/ IDataPacket in many places
This commit is contained in:
1 parent
49a952fb32
commit
03a8f4e9c0
64 files changed
+191
-200
No files matched your search
@@ -219,15 +219,15 @@ namespace BCG {
|
||||
BlueTable at = null;
|
||||
IBlueRowCollection nt = null;
|
||||
|
||||
foreach (DataPacket dp in packets) {
|
||||
foreach (IDataPacket dp in packets) {
|
||||
ArrayList oldDeleted = deleted;
|
||||
ArrayList oldAdded = added;
|
||||
|
||||
added = new ArrayList();
|
||||
deleted = new ArrayList();
|
||||
if (dt == null) {
|
||||
dt = new BlueTable(dp.schema);
|
||||
at = new BlueTable(dp.schema);
|
||||
dt = new BlueTable(dp.Schema);
|
||||
at = new BlueTable(dp.Schema);
|
||||
}
|
||||
|
||||
deleted.AddRange(oldDeleted);
|
||||
@@ -331,7 +331,7 @@ namespace BCG {
|
||||
// }
|
||||
|
||||
public static class DataPacketExtensions {
|
||||
public static bool HasChanges(this DataPacket dataPacket) =>
|
||||
public static bool HasChanges(this IDataPacket dataPacket) =>
|
||||
dataPacket.addedRows.Count > 0 || dataPacket.deletedRows.Count > 0;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user