This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch ignite-11525
in repository https://gitbox.apache.org/repos/asf/ignite.git

commit 4b231a183d7393c7f9cd84e3dd90b62eaa9b8756
Author: Pavel Tupitsyn <ptupit...@apache.org>
AuthorDate: Fri Apr 5 17:00:08 2019 +0300

    Fixing examples - sql
---
 .../dotnet/examples/Apache.Ignite.Examples/Sql/SqlExample.cs        | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Sql/SqlExample.cs 
b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Sql/SqlExample.cs
index f163c54..2c08335 100644
--- a/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Sql/SqlExample.cs
+++ b/modules/platforms/dotnet/examples/Apache.Ignite.Examples/Sql/SqlExample.cs
@@ -114,15 +114,15 @@ namespace Apache.Ignite.Examples.Sql
         {
             const string orgName = "Apache";
 
-            var qry = cache.Query(new SqlQuery("Employee",
-                "from Employee, 
\"dotnet_cache_query_organization\".Organization " +
+            var qry = cache.Query(new SqlFieldsQuery(
+                "select name from from Employee, 
\"dotnet_cache_query_organization\".Organization " +
                 "where Employee.organizationId = Organization._key and 
Organization.name = ?", orgName));
 
             Console.WriteLine();
             Console.WriteLine(">>> Employees working for " + orgName + ":");
 
             foreach (var entry in qry)
-                Console.WriteLine(">>>     " + entry.Value);
+                Console.WriteLine(">>>     " + entry[0]);
         }
 
         /// <summary>

Reply via email to