Exemplo n.º 1
0
        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");
        }
Exemplo n.º 2
0
        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");
        }
Exemplo n.º 3
0
 /// <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;
 }