Repository: ignite Updated Branches: refs/heads/master 90506c418 -> 8ae3d5b20
IGNITE-4870 .NET: QueryEntity.TableName - update config schema Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/8ae3d5b2 Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/8ae3d5b2 Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/8ae3d5b2 Branch: refs/heads/master Commit: 8ae3d5b209c383faa8e0068d0dcb2ff4533cf3d7 Parents: 90506c4 Author: Pavel Tupitsyn <[email protected]> Authored: Tue Mar 28 17:26:45 2017 +0300 Committer: Pavel Tupitsyn <[email protected]> Committed: Tue Mar 28 17:26:45 2017 +0300 ---------------------------------------------------------------------- .../IgniteConfigurationSerializerTest.cs | 6 ++++-- .../dotnet/Apache.Ignite.Core/IgniteConfigurationSection.xsd | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/8ae3d5b2/modules/platforms/dotnet/Apache.Ignite.Core.Tests/IgniteConfigurationSerializerTest.cs ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/IgniteConfigurationSerializerTest.cs b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/IgniteConfigurationSerializerTest.cs index 4335d11..6015f80 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core.Tests/IgniteConfigurationSerializerTest.cs +++ b/modules/platforms/dotnet/Apache.Ignite.Core.Tests/IgniteConfigurationSerializerTest.cs @@ -95,7 +95,7 @@ namespace Apache.Ignite.Core.Tests <cacheConfiguration> <cacheConfiguration cacheMode='Replicated' readThrough='true' writeThrough='true' enableStatistics='true'> <queryEntities> - <queryEntity keyType='System.Int32' valueType='System.String'> + <queryEntity keyType='System.Int32' valueType='System.String' tableName='myTable'> <fields> <queryField name='length' fieldType='System.Int32' isKeyField='true' /> </fields> @@ -175,6 +175,7 @@ namespace Apache.Ignite.Core.Tests var queryEntity = cacheCfg.QueryEntities.Single(); Assert.AreEqual(typeof(int), queryEntity.KeyType); Assert.AreEqual(typeof(string), queryEntity.ValueType); + Assert.AreEqual("myTable", queryEntity.TableName); Assert.AreEqual("length", queryEntity.Fields.Single().Name); Assert.AreEqual(typeof(int), queryEntity.Fields.Single().FieldType); Assert.IsTrue(queryEntity.Fields.Single().IsKeyField); @@ -655,7 +656,8 @@ namespace Apache.Ignite.Core.Tests new QueryAlias("field.field", "fld") }, KeyType = typeof (string), - ValueType = typeof (long) + ValueType = typeof (long), + TableName = "table-1" }, }, ReadFromBackup = false, http://git-wip-us.apache.org/repos/asf/ignite/blob/8ae3d5b2/modules/platforms/dotnet/Apache.Ignite.Core/IgniteConfigurationSection.xsd ---------------------------------------------------------------------- diff --git a/modules/platforms/dotnet/Apache.Ignite.Core/IgniteConfigurationSection.xsd b/modules/platforms/dotnet/Apache.Ignite.Core/IgniteConfigurationSection.xsd index 629a41b..375d128 100644 --- a/modules/platforms/dotnet/Apache.Ignite.Core/IgniteConfigurationSection.xsd +++ b/modules/platforms/dotnet/Apache.Ignite.Core/IgniteConfigurationSection.xsd @@ -421,6 +421,13 @@ </xs:documentation> </xs:annotation> </xs:attribute> + <xs:attribute name="tableName" type="xs:string"> + <xs:annotation> + <xs:documentation> + SQL table name. When not set, value type name is used. + </xs:documentation> + </xs:annotation> + </xs:attribute> </xs:complexType> </xs:element> </xs:sequence>
