You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by pt...@apache.org on 2019/04/05 14:30:24 UTC
[ignite] 02/02: Fix .NET Core examples
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 0c0fd91238fd9a142ec583637e782ed617f7c521
Author: Pavel Tupitsyn <pt...@apache.org>
AuthorDate: Fri Apr 5 17:30:06 2019 +0300
Fix .NET Core examples
---
.../platforms/dotnet/examples/dotnetcore/SqlExample.cs | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/modules/platforms/dotnet/examples/dotnetcore/SqlExample.cs b/modules/platforms/dotnet/examples/dotnetcore/SqlExample.cs
index 44e0983..0e1454b 100644
--- a/modules/platforms/dotnet/examples/dotnetcore/SqlExample.cs
+++ b/modules/platforms/dotnet/examples/dotnetcore/SqlExample.cs
@@ -103,8 +103,8 @@ namespace Apache.Ignite.Examples
Console.WriteLine();
Console.WriteLine($">>> Employees with salary > {minSalary}:");
- foreach (var entry in qry)
- Console.WriteLine(">>> " + entry[0]);
+ foreach (var row in qry)
+ Console.WriteLine(">>> " + row[0]);
}
/// <summary>
@@ -122,8 +122,8 @@ namespace Apache.Ignite.Examples
Console.WriteLine();
Console.WriteLine($">>> Employees working for {orgName}:");
- foreach (var entry in qry)
- Console.WriteLine(">>> " + entry[0]);
+ foreach (var row in qry)
+ Console.WriteLine(">>> " + row[0]);
}
/// <summary>
@@ -134,8 +134,8 @@ namespace Apache.Ignite.Examples
{
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 Employee.name from Employee, \"dotnet_cache_query_organization\".Organization " +
"where Employee.organizationId = Organization._key and Organization.name = ?", orgName)
{
EnableDistributedJoins = true
@@ -144,8 +144,8 @@ namespace Apache.Ignite.Examples
Console.WriteLine();
Console.WriteLine(">>> Employees working for " + orgName + " (distributed joins):");
- foreach (var entry in qry)
- Console.WriteLine(">>> " + entry.Value);
+ foreach (var row in qry)
+ Console.WriteLine(">>> " + row[0]);
}
/// <summary>