From fbe3c5124372c70b3d7d722510ad00593b3a02ed Mon Sep 17 00:00:00 2001 From: "Bobby.Lau" Date: Thu, 7 Mar 2019 10:58:33 +0000 Subject: [PATCH 1/5] added .vs to ignore path --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 4158ead..c23d12a 100644 --- a/.gitignore +++ b/.gitignore @@ -165,3 +165,4 @@ pip-log.txt # Mac crap .DS_Store NuGetPackage/ +.vs/ From b63c236378fd3a229ab11e708ed050e5e4f6f1e7 Mon Sep 17 00:00:00 2001 From: "Bobby.Lau" Date: Thu, 7 Mar 2019 17:22:16 +0000 Subject: [PATCH 2/5] Added $select=property as Alias syntax Couldn' get mspec to run so rerouted some test logic to use nunit. --- LinqToQueryString.IntegrationTests/App.config | 18 +- ...qToQueryString.IntegrationTests.Sql.csproj | 6 +- .../packages.config | 4 +- .../LinqToQueryString.Tests.csproj | 6 +- .../LinqToQueryString.UnitTests.csproj | 45 +- .../Nunit/Projection.cs | 116 + LinqToQueryString.UnitTests/Projection.cs | 29 +- LinqToQueryString.UnitTests/packages.config | 12 +- ...oQuerystring.IntegrationTests.Mongo.csproj | 6 +- .../packages.config | 4 +- LinqToQuerystring/LinqToQuerystring.csproj | 7 +- LinqToQuerystring/LinqToQuerystring.g | 9 +- LinqToQuerystring/LinqToQuerystring.tokens | 137 +- LinqToQuerystring/LinqToQuerystringLexer.cs | 1732 +++++------ LinqToQuerystring/LinqToQuerystringParser.cs | 2593 +++++++++-------- LinqToQuerystring/TreeNodes/AsNode.cs | 29 + LinqToQuerystring/TreeNodes/SelectNode.cs | 57 +- .../TreeNodes/TreeNodeFactory.cs | 2 + 18 files changed, 2648 insertions(+), 2164 deletions(-) create mode 100644 LinqToQueryString.UnitTests/Nunit/Projection.cs create mode 100644 LinqToQuerystring/TreeNodes/AsNode.cs diff --git a/LinqToQueryString.IntegrationTests/App.config b/LinqToQueryString.IntegrationTests/App.config index f59175b..6b87aad 100644 --- a/LinqToQueryString.IntegrationTests/App.config +++ b/LinqToQueryString.IntegrationTests/App.config @@ -1,31 +1,31 @@ - + -
+
- + - - + + - + - + - - + + diff --git a/LinqToQueryString.IntegrationTests/LinqToQueryString.IntegrationTests.Sql.csproj b/LinqToQueryString.IntegrationTests/LinqToQueryString.IntegrationTests.Sql.csproj index 461ea91..cf67523 100644 --- a/LinqToQueryString.IntegrationTests/LinqToQueryString.IntegrationTests.Sql.csproj +++ b/LinqToQueryString.IntegrationTests/LinqToQueryString.IntegrationTests.Sql.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -8,7 +8,7 @@ Properties LinqToQueryString.IntegrationTests.Sql LinqToQueryString.IntegrationTests.Sql - v4.0 + v4.6.2 512 {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10.0 @@ -28,6 +28,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -36,6 +37,7 @@ TRACE prompt 4 + false diff --git a/LinqToQueryString.IntegrationTests/packages.config b/LinqToQueryString.IntegrationTests/packages.config index 7514d21..5d01d01 100644 --- a/LinqToQueryString.IntegrationTests/packages.config +++ b/LinqToQueryString.IntegrationTests/packages.config @@ -4,8 +4,8 @@ - - + + diff --git a/LinqToQueryString.Tests/LinqToQueryString.Tests.csproj b/LinqToQueryString.Tests/LinqToQueryString.Tests.csproj index 761a599..dbbe35b 100644 --- a/LinqToQueryString.Tests/LinqToQueryString.Tests.csproj +++ b/LinqToQueryString.Tests/LinqToQueryString.Tests.csproj @@ -1,5 +1,5 @@  - + Debug AnyCPU @@ -8,7 +8,7 @@ Properties LinqToQueryString.Tests LinqToQueryString.Tests - v3.5 + v4.6.2 512 {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10.0 @@ -26,6 +26,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -34,6 +35,7 @@ TRACE prompt 4 + false diff --git a/LinqToQueryString.UnitTests/LinqToQueryString.UnitTests.csproj b/LinqToQueryString.UnitTests/LinqToQueryString.UnitTests.csproj index b8044a2..b46a268 100644 --- a/LinqToQueryString.UnitTests/LinqToQueryString.UnitTests.csproj +++ b/LinqToQueryString.UnitTests/LinqToQueryString.UnitTests.csproj @@ -1,5 +1,9 @@  - + + + + + Debug AnyCPU @@ -8,7 +12,7 @@ Properties LinqToQueryString.UnitTests LinqToQueryString.UnitTests - v3.5 + v4.6.2 512 {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 10.0 @@ -19,6 +23,8 @@ ..\ true + + true @@ -28,6 +34,7 @@ DEBUG;TRACE prompt 4 + false pdbonly @@ -36,6 +43,7 @@ TRACE prompt 4 + false @@ -45,9 +53,27 @@ ..\packages\Machine.Specifications.Should.0.7.0-Unstable0008\lib\net20\Machine.Specifications.Should.dll + + ..\packages\Microsoft.CodeCoverage.16.0.1\lib\net45\Microsoft.VisualStudio.CodeCoverage.Shim.dll + + + ..\packages\Mono.Cecil.0.10.0\lib\net40\Mono.Cecil.dll + + + ..\packages\Mono.Cecil.0.10.0\lib\net40\Mono.Cecil.Mdb.dll + + + ..\packages\Mono.Cecil.0.10.0\lib\net40\Mono.Cecil.Pdb.dll + + + ..\packages\Mono.Cecil.0.10.0\lib\net40\Mono.Cecil.Rocks.dll + ..\packages\Moq.4.1.1309.1617\lib\net35\Moq.dll + + ..\packages\NUnit.3.11.0\lib\net45\nunit.framework.dll + @@ -69,6 +95,7 @@ + @@ -87,6 +114,7 @@ + @@ -107,6 +135,19 @@ + + + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. + + + + + + + + + +