private void CompareTypes(int count, IEntityLight originalEntity, IEntityLight newEntity) { var wrapLog = Log.Call($"ids:{newEntity.Type.StaticName}/{originalEntity.Type.StaticName}"); if (originalEntity.Type.StaticName != newEntity.Type.StaticName) { Add($"entity type mismatch on {count}"); } wrapLog("done"); }
private void CompareIdentities(int count, IEntityLight originalEntity, IEntityLight newEntity) { var wrapLog = Log.Call($"ids:{newEntity.EntityId}/{originalEntity.EntityId}"); if (originalEntity.EntityId != newEntity.EntityId) { Add($"entity ID mismatch on {count} - {newEntity.EntityId}/{originalEntity.EntityId}"); } Log.Add($"Guids:{newEntity.EntityGuid}/{originalEntity.EntityGuid}"); if (originalEntity.EntityGuid != newEntity.EntityGuid) { Add($"entity GUID mismatch on {count} - {newEntity.EntityGuid}/{originalEntity.EntityGuid}"); } wrapLog("done"); }
/// <summary> /// Initializes a new instance of the RelationshipManager class. /// </summary> /// <param name="entity"></param> /// <param name="allRelationships"></param> public RelationshipManager(IEntityLight entity, IEnumerable <EntityRelationshipItem> allRelationships) { _entity = entity; AllRelationships = allRelationships; }