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); } }
private static void DeserializeGraphEntityId(GraphEntity graphEntity, RedisResult rawEntityId) => graphEntity.Id = (int)rawEntityId;