Skip to content

Commit

Permalink
Release 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hhblaze committed Dec 9, 2020
1 parent 29f4bb5 commit 8955120
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
16 changes: 11 additions & 5 deletions SPEntitySyncingClient/SyncStrategyV1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,17 +144,23 @@ public override bool UpdateLocalDatabase(ExchangeData exData) //(List<SyncOperat
{
var oldEntity = rowLocalEntity.GetDataBlockWithFixedAddress<T>();

//Setting value from the server to this ID (real entity that must belong to that id)
tran.InsertDataBlockWithFixedAddress<byte[]>(_entitySync.GetEntityContentTable, rowLocalEntity.Value, opr.SerializedObject);

_entitySync.ptrContent = null;

//New GeneratedID must be stored for the new sync
((ISyncEntity)oldEntity).Id = opr.ExternalId; //Theoretically on this place can be called a user-function to get another ID type
((ISyncEntity)oldEntity).SyncTimestamp = ++now; //must be returned back, overriding SyncTimeStamp
((ISyncEntity)oldEntity).SyncTimestamp = ++now; //must be returned back, overriding SyncTimeStamp

_entitySync.OnInsertEntity(oldEntity, default(T), DBreeze.Utils.CustomSerializator.ByteArraySerializator(oldEntity), opr.InternalId);

InsertIndex4Sync(tran, _entitySync.entityTable, oldEntity, _entitySync.ptrContent, default(T));


//Setting value from the server for the existing ID (real entity that must belong to that id)
_entitySync.ptrContent = rowLocalEntity.Value;

_entitySync.OnInsertEntity((T)DBreeze.Utils.CustomSerializator.ByteArrayDeSerializator(opr.SerializedObject, typeof(T)), default(T),
opr.SerializedObject, 0);

reRunSync = true;
}
}
Expand Down
2 changes: 1 addition & 1 deletion _Deployment/EntitySyncing.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>EntitySyncingServer</id>
<version>1.004.2020.1208</version>
<version>1.005.2020.1209</version>
<title>EntitySyncingServer</title>
<authors>hhblaze@gmail.com</authors>
<owners>https://tiesky.com</owners>
Expand Down
Binary file removed _Deployment/EntitySyncingClient.1.4.2020.1208.nupkg
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion _Deployment/EntitySyncingClient.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package >
<metadata>
<id>EntitySyncingClient</id>
<version>1.004.2020.1208</version>
<version>1.005.2020.1209</version>
<title>EntitySyncingClient</title>
<authors>hhblaze@gmail.com</authors>
<owners>https://tiesky.com</owners>
Expand Down
Binary file not shown.

0 comments on commit 8955120

Please sign in to comment.