Skip to content

Commit dceb2db

Browse files
committed
Re-structuring classes under "Linq" folder
1 parent 48d8337 commit dceb2db

File tree

12 files changed

+20
-22
lines changed

12 files changed

+20
-22
lines changed

src/MongoFramework/Infrastructure/Querying/DefaultTranslators.cs renamed to src/MongoFramework/Infrastructure/Linq/Translation/DefaultTranslators.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
using System;
1+
using MongoFramework.Infrastructure.Linq.Translation.Translators;
2+
using System;
23
using System.Collections.Generic;
34
using System.Text;
4-
using MongoFramework.Infrastructure.Querying.Translators;
55

6-
namespace MongoFramework.Infrastructure.Querying
6+
namespace MongoFramework.Infrastructure.Linq.Translation
77
{
88
public static class DefaultTranslators
99
{

src/MongoFramework/Infrastructure/Querying/ExpressionTranslation.cs renamed to src/MongoFramework/Infrastructure/Linq/Translation/ExpressionTranslation.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
using System.Text;
77
using MongoDB.Bson;
88
using MongoFramework.Infrastructure.Mapping;
9-
using MongoFramework.Infrastructure.Querying.Translators;
109

11-
namespace MongoFramework.Infrastructure.Querying
10+
namespace MongoFramework.Infrastructure.Linq.Translation
1211
{
1312
public static class ExpressionTranslation
1413
{

src/MongoFramework/Infrastructure/Querying/StageBuilder.cs renamed to src/MongoFramework/Infrastructure/Linq/Translation/StageBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System.Text;
55
using MongoDB.Bson;
66

7-
namespace MongoFramework.Infrastructure.Querying
7+
namespace MongoFramework.Infrastructure.Linq.Translation
88
{
99
public static class StageBuilder
1010
{

src/MongoFramework/Infrastructure/Querying/TranslationHelper.cs renamed to src/MongoFramework/Infrastructure/Linq/Translation/TranslationHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using MongoDB.Bson;
77
using MongoFramework.Infrastructure.Mapping;
88

9-
namespace MongoFramework.Infrastructure.Querying
9+
namespace MongoFramework.Infrastructure.Linq.Translation
1010
{
1111
public static class TranslationHelper
1212
{

src/MongoFramework/Infrastructure/Querying/TranslatorInterfaces.cs renamed to src/MongoFramework/Infrastructure/Linq/Translation/TranslatorInterfaces.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Text;
66
using MongoDB.Bson;
77

8-
namespace MongoFramework.Infrastructure.Querying
8+
namespace MongoFramework.Infrastructure.Linq.Translation
99
{
1010
public interface IQueryTranslator { }
1111
public interface IMethodTranslator : IQueryTranslator

src/MongoFramework/Infrastructure/Querying/Translators/OrderByTranslator.cs renamed to src/MongoFramework/Infrastructure/Linq/Translation/Translators/OrderByTranslator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Text;
77
using MongoDB.Bson;
88

9-
namespace MongoFramework.Infrastructure.Querying.Translators
9+
namespace MongoFramework.Infrastructure.Linq.Translation.Translators
1010
{
1111
public class OrderByTranslator : IMethodTranslator
1212
{
@@ -30,7 +30,7 @@ public BsonValue TranslateMethod(MethodCallExpression expression, IEnumerable<Ex
3030
"$sort",
3131
new BsonDocument
3232
{
33-
{
33+
{
3434
ExpressionTranslation.TranslateSubExpression(expression.Arguments[1]).AsString,
3535
direction
3636
}

src/MongoFramework/Infrastructure/Querying/Translators/SelectTranslator.cs renamed to src/MongoFramework/Infrastructure/Linq/Translation/Translators/SelectTranslator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Text;
77
using MongoDB.Bson;
88

9-
namespace MongoFramework.Infrastructure.Querying.Translators
9+
namespace MongoFramework.Infrastructure.Linq.Translation.Translators
1010
{
1111
public class SelectTranslator : IMethodTranslator
1212
{

src/MongoFramework/Infrastructure/Querying/Translators/WhereTranslator.cs renamed to src/MongoFramework/Infrastructure/Linq/Translation/Translators/WhereTranslator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Text;
77
using MongoDB.Bson;
88

9-
namespace MongoFramework.Infrastructure.Querying.Translators
9+
namespace MongoFramework.Infrastructure.Linq.Translation.Translators
1010
{
1111
public class WhereTranslator : IMethodTranslator
1212
{

tests/MongoFramework.Tests/Infrastructure/Querying/ExpressionTranslationTests.cs renamed to tests/MongoFramework.Tests/Infrastructure/Linq/Translation/ExpressionTranslationTests.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66
using System.Threading.Tasks;
77
using Microsoft.VisualStudio.TestTools.UnitTesting;
88
using MongoDB.Bson;
9-
using MongoFramework.Infrastructure.Querying;
10-
using MongoFramework.Infrastructure.Querying.Translators;
9+
using MongoFramework.Infrastructure.Linq.Translation;
1110

12-
namespace MongoFramework.Tests.Infrastructure.Querying
11+
namespace MongoFramework.Tests.Infrastructure.Linq.Translation
1312
{
1413
[TestClass]
1514
public class ExpressionTranslationTests : QueryTestBase

tests/MongoFramework.Tests/Infrastructure/Querying/QueryTestBase.cs renamed to tests/MongoFramework.Tests/Infrastructure/Linq/Translation/QueryTestBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
using System;
1+
using MongoFramework.Infrastructure.Linq.Translation;
2+
using System;
23
using System.Collections.Generic;
34
using System.Linq;
45
using System.Linq.Expressions;
56
using System.Text;
67
using System.Threading.Tasks;
7-
using MongoFramework.Infrastructure.Querying;
88

9-
namespace MongoFramework.Tests.Infrastructure.Querying
9+
namespace MongoFramework.Tests.Infrastructure.Linq.Translation
1010
{
1111
public abstract class QueryTestBase : TestBase
1212
{

0 commit comments

Comments
 (0)