Example #1
0
        private void DeserializeGraphEntityProperties(GraphEntity graphEntity, RedisResult[] rawProperties)
        {
            foreach (RedisResult[] rawProperty in rawProperties)
            {
                var property = new Property
                {
                    Name  = _graphCache.GetPropertyName((int)rawProperty[0]),
                    Value = DeserializeScalar(rawProperty.Skip(1).ToArray())
                };

                graphEntity.AddProperty(property);
            }
        }
Example #2
0
 private static void DeserializeGraphEntityId(GraphEntity graphEntity, RedisResult rawEntityId) =>
 graphEntity.Id = (int)rawEntityId;