[06/50] [abbrv] ignite git commit: IGNITE-7851: .NET: CacheConfiguration(string, Type[]) depricated.

2018-03-18 Thread sboikov
IGNITE-7851: .NET: CacheConfiguration(string, Type[]) depricated.

This closes #3595


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/caba7cca
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/caba7cca
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/caba7cca

Branch: refs/heads/ignite-zk
Commit: caba7cca8603dc0f7ae7c0faba714f089448bf72
Parents: ed76af2
Author: apopov 
Authored: Wed Mar 7 12:58:32 2018 +0300
Committer: Igor Sapego 
Committed: Wed Mar 7 12:58:32 2018 +0300

--
 .../Cache/Query/CacheQueriesCodeConfigurationTest.cs   | 2 +-
 .../Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs   | 6 --
 .../Cache/Query/Linq/CacheLinqTest.Misc.cs | 4 ++--
 .../Cache/Query/Linq/CacheLinqTest.Numerics.cs | 4 ++--
 .../Apache.Ignite.Core.Tests/Client/Cache/CacheTestNoMeta.cs   | 2 +-
 .../Cache/Configuration/CacheConfiguration.cs  | 2 ++
 .../examples/Apache.Ignite.Examples/Datagrid/QueryExample.cs   | 2 +-
 .../dotnet/examples/Apache.Ignite.Examples/Sql/LinqExample.cs  | 5 +++--
 .../dotnet/examples/Apache.Ignite.Examples/Sql/SqlExample.cs   | 5 +++--
 9 files changed, 19 insertions(+), 13 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ignite/blob/caba7cca/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs
--
diff --git 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs
 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs
index 9768fca..a05923d 100644
--- 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs
+++ 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs
@@ -161,7 +161,7 @@ namespace Apache.Ignite.Core.Tests.Cache.Query
 using (var ignite = Ignition.Start(cfg))
 {
 var cache = ignite.GetOrCreateCache(new CacheConfiguration(CacheName,
-typeof (AttributeQueryPerson)));
+new QueryEntity(typeof(int), 
typeof(AttributeQueryPerson;
 
 Assert.IsNotNull(cache);
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/caba7cca/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs
--
diff --git 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs
 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs
index 278d1fd..ceeeb37 100644
--- 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs
+++ 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs
@@ -616,8 +616,10 @@ namespace Apache.Ignite.Core.Tests.Cache.Query
 [Test]
 public void TestCustomSchema()
 {
-var doubles = GetIgnite().GetOrCreateCache(new 
CacheConfiguration("doubles", typeof(double)));
-var strings = GetIgnite().GetOrCreateCache(new 
CacheConfiguration("strings", typeof(string)));
+var doubles = GetIgnite().GetOrCreateCache(new 
CacheConfiguration("doubles",
+new QueryEntity(typeof(int), typeof(double;
+var strings = GetIgnite().GetOrCreateCache(new 
CacheConfiguration("strings",
+new QueryEntity(typeof(int), typeof(string;
 
 doubles[1] = 36.6;
 strings[1] = "foo";

http://git-wip-us.apache.org/repos/asf/ignite/blob/caba7cca/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs
--
diff --git 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs
 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs
index 3585281..d9c57d0 100644
--- 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs
+++ 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs
@@ -237,8 +237,8 @@ namespace Apache.Ignite.Core.Tests.Cache.Query.Linq
 public void TestLocalQuery()
 {
 // Create partitioned cache
-var cache =
-Ignition.GetIgnite().GetOrCreateCache(new 
CacheConfiguration("partCache", typeof(int))
+var cache = Ignition.GetIgnite().GetOrCreateCache(new 
CacheConfiguration("partCache", 
+new QueryEntity(typeof(int), typeof(int)))
 {
 

ignite git commit: IGNITE-7851: .NET: CacheConfiguration(string, Type[]) depricated.

2018-03-07 Thread isapego
Repository: ignite
Updated Branches:
  refs/heads/master ed76af245 -> caba7cca8


IGNITE-7851: .NET: CacheConfiguration(string, Type[]) depricated.

This closes #3595


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/caba7cca
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/caba7cca
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/caba7cca

Branch: refs/heads/master
Commit: caba7cca8603dc0f7ae7c0faba714f089448bf72
Parents: ed76af2
Author: apopov 
Authored: Wed Mar 7 12:58:32 2018 +0300
Committer: Igor Sapego 
Committed: Wed Mar 7 12:58:32 2018 +0300

--
 .../Cache/Query/CacheQueriesCodeConfigurationTest.cs   | 2 +-
 .../Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs   | 6 --
 .../Cache/Query/Linq/CacheLinqTest.Misc.cs | 4 ++--
 .../Cache/Query/Linq/CacheLinqTest.Numerics.cs | 4 ++--
 .../Apache.Ignite.Core.Tests/Client/Cache/CacheTestNoMeta.cs   | 2 +-
 .../Cache/Configuration/CacheConfiguration.cs  | 2 ++
 .../examples/Apache.Ignite.Examples/Datagrid/QueryExample.cs   | 2 +-
 .../dotnet/examples/Apache.Ignite.Examples/Sql/LinqExample.cs  | 5 +++--
 .../dotnet/examples/Apache.Ignite.Examples/Sql/SqlExample.cs   | 5 +++--
 9 files changed, 19 insertions(+), 13 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/ignite/blob/caba7cca/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs
--
diff --git 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs
 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs
index 9768fca..a05923d 100644
--- 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs
+++ 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesCodeConfigurationTest.cs
@@ -161,7 +161,7 @@ namespace Apache.Ignite.Core.Tests.Cache.Query
 using (var ignite = Ignition.Start(cfg))
 {
 var cache = ignite.GetOrCreateCache(new CacheConfiguration(CacheName,
-typeof (AttributeQueryPerson)));
+new QueryEntity(typeof(int), 
typeof(AttributeQueryPerson;
 
 Assert.IsNotNull(cache);
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/caba7cca/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs
--
diff --git 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs
 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs
index 278d1fd..ceeeb37 100644
--- 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs
+++ 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/CacheQueriesTest.cs
@@ -616,8 +616,10 @@ namespace Apache.Ignite.Core.Tests.Cache.Query
 [Test]
 public void TestCustomSchema()
 {
-var doubles = GetIgnite().GetOrCreateCache(new 
CacheConfiguration("doubles", typeof(double)));
-var strings = GetIgnite().GetOrCreateCache(new 
CacheConfiguration("strings", typeof(string)));
+var doubles = GetIgnite().GetOrCreateCache(new 
CacheConfiguration("doubles",
+new QueryEntity(typeof(int), typeof(double;
+var strings = GetIgnite().GetOrCreateCache(new 
CacheConfiguration("strings",
+new QueryEntity(typeof(int), typeof(string;
 
 doubles[1] = 36.6;
 strings[1] = "foo";

http://git-wip-us.apache.org/repos/asf/ignite/blob/caba7cca/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs
--
diff --git 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs
 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs
index 3585281..d9c57d0 100644
--- 
a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs
+++ 
b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/Cache/Query/Linq/CacheLinqTest.Misc.cs
@@ -237,8 +237,8 @@ namespace Apache.Ignite.Core.Tests.Cache.Query.Linq
 public void TestLocalQuery()
 {
 // Create partitioned cache
-var cache =
-Ignition.GetIgnite().GetOrCreateCache(new 
CacheConfiguration("partCache", typeof(int))
+var cache = Ignition.GetIgnite().GetOrCreateCache(new 
CacheConfiguration("partCache", 
+new