From 2d0bad987de5dfe0bbafef8cf3c6852999f21987 Mon Sep 17 00:00:00 2001 From: Christoph Sachse Date: Thu, 15 Jun 2017 16:49:00 -0500 Subject: [PATCH] Make class name comparison case-insensitive --- src/OrientDB-Net.binary.Innov8tive/API/Query/OSqlCreateClass.cs | 2 +- src/OrientDB-Net.binary.Innov8tive/project.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OrientDB-Net.binary.Innov8tive/API/Query/OSqlCreateClass.cs b/src/OrientDB-Net.binary.Innov8tive/API/Query/OSqlCreateClass.cs index 8cd85ca8..ab1210ea 100644 --- a/src/OrientDB-Net.binary.Innov8tive/API/Query/OSqlCreateClass.cs +++ b/src/OrientDB-Net.binary.Innov8tive/API/Query/OSqlCreateClass.cs @@ -122,7 +122,7 @@ public string Run() } else { - cluster = _connection.Database.GetClusters().FirstOrDefault(c => c.Name == _className); + cluster = _connection.Database.GetClusters().FirstOrDefault(c => c.Name.Equals(_className, StringComparison.OrdinalIgnoreCase)); } if (_autoProperties) diff --git a/src/OrientDB-Net.binary.Innov8tive/project.json b/src/OrientDB-Net.binary.Innov8tive/project.json index b0faf685..438c6935 100644 --- a/src/OrientDB-Net.binary.Innov8tive/project.json +++ b/src/OrientDB-Net.binary.Innov8tive/project.json @@ -17,7 +17,7 @@ "System.Threading": "4.0.11", "System.Reflection.Extensions": "4.0.1", "System.Numerics.Vectors": "4.1.1", - "System.IO": "4.1.0" + "System.IO": "4.1.0" }, "frameworks": { "net451": {