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/03/30 19:52:38 UTC

[ignite] 01/01: Mark APIs as Obsolete

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 354e8fe09a2064239895166a33c6d645389fb6d3
Author: Pavel Tupitsyn <pt...@apache.org>
AuthorDate: Sat Mar 30 22:52:24 2019 +0300

    Mark APIs as Obsolete
---
 modules/platforms/dotnet/Apache.Ignite.Core/Cache/Query/SqlQuery.cs     | 2 ++
 .../platforms/dotnet/Apache.Ignite.Core/Client/Cache/ICacheClient.cs    | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Cache/Query/SqlQuery.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Cache/Query/SqlQuery.cs
index 4c979ed..d0e77ca 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Cache/Query/SqlQuery.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Cache/Query/SqlQuery.cs
@@ -27,6 +27,8 @@ namespace Apache.Ignite.Core.Cache.Query
     /// <summary>
     /// SQL Query.
     /// </summary>
+    [Obsolete("Use SqlFieldsQuery instead. For strongly-typed queries use Apache.Ignite.Linq. " +
+              "SqlQuery is a limited subset of SqlFieldsQuery.")]
     public class SqlQuery : QueryBase
     {
         /// <summary>
diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/Client/Cache/ICacheClient.cs b/modules/platforms/dotnet/Apache.Ignite.Core/Client/Cache/ICacheClient.cs
index 818a7f6..ab98e15 100644
--- a/modules/platforms/dotnet/Apache.Ignite.Core/Client/Cache/ICacheClient.cs
+++ b/modules/platforms/dotnet/Apache.Ignite.Core/Client/Cache/ICacheClient.cs
@@ -154,6 +154,8 @@ namespace Apache.Ignite.Core.Client.Cache
         /// </summary>
         /// <param name="sqlQuery">SQL query.</param>
         /// <returns>Query cursor.</returns>
+        [Obsolete("Use SqlFieldsQuery instead. For strongly-typed queries use Apache.Ignite.Linq. " +
+                  "SqlQuery is a limited subset of SqlFieldsQuery.")]
         IQueryCursor<ICacheEntry<TK, TV>> Query(SqlQuery sqlQuery);
 
         /// <summary>