コード例 #1
0
ファイル: ResultSet.cs プロジェクト: jweber/NRedisGraph
        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);
            }
        }
コード例 #2
0
ファイル: ResultSet.cs プロジェクト: jweber/NRedisGraph
 private static void DeserializeGraphEntityId(GraphEntity graphEntity, RedisResult rawEntityId) =>
 graphEntity.Id = (int)rawEntityId;