Skip to content

Commit 22856d4

Browse files
author
rstam
committed
Added license to some files. Standardized using statements. Removed a few checks for null returned from GetSerializationInfo (which now throws an exception). Removed some dead files. Made all files in the Linq\Utils folder share the same namespace.
1 parent 46a8dd5 commit 22856d4

17 files changed

+50
-3437
lines changed

Driver/Builders/FieldsBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using System.Collections.Generic;
1818
using System.Linq;
1919
using System.Linq.Expressions;
20+
using System.Text;
2021
using MongoDB.Bson;
2122
using MongoDB.Bson.IO;
2223
using MongoDB.Bson.Serialization;

Driver/Builders/GeoHaystackSearchOptionsBuilder.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
*/
1515

1616
using System;
17+
using System.Collections.Generic;
18+
using System.Linq;
1719
using System.Linq.Expressions;
20+
using System.Text;
1821
using MongoDB.Bson;
1922
using MongoDB.Bson.IO;
2023
using MongoDB.Bson.Serialization;

Driver/Builders/GroupByBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414
*/
1515

1616
using System;
17+
using System.Collections.Generic;
1718
using System.Linq;
1819
using System.Linq.Expressions;
20+
using System.Text;
1921
using MongoDB.Bson;
2022
using MongoDB.Bson.IO;
2123
using MongoDB.Bson.Serialization;

Driver/Builders/IndexKeysBuilder.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
using System.Collections.Generic;
1818
using System.Linq;
1919
using System.Linq.Expressions;
20+
using System.Text;
2021
using MongoDB.Bson;
2122
using MongoDB.Bson.IO;
2223
using MongoDB.Bson.Serialization;

Driver/Builders/QueryBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
using System;
1717
using System.Collections.Generic;
1818
using System.Linq;
19+
using System.Linq.Expressions;
1920
using System.Text;
2021

2122
using MongoDB.Bson;
2223
using MongoDB.Bson.IO;
2324
using MongoDB.Bson.Serialization;
24-
using System.Linq.Expressions;
2525

2626
namespace MongoDB.Driver.Builders
2727
{

Driver/Builders/SimpleQueryBuilder.cs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
1-
using System;
1+
/* Copyright 2010-2012 10gen Inc.
2+
*
3+
* Licensed under the Apache License, Version 2.0 (the "License");
4+
* you may not use this file except in compliance with the License.
5+
* You may obtain a copy of the License at
6+
*
7+
* http://www.apache.org/licenses/LICENSE-2.0
8+
*
9+
* Unless required by applicable law or agreed to in writing, software
10+
* distributed under the License is distributed on an "AS IS" BASIS,
11+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
* See the License for the specific language governing permissions and
13+
* limitations under the License.
14+
*/
15+
16+
using System;
217
using System.Collections.Generic;
318
using System.Linq;
419
using System.Text;
5-
using MongoDB.Bson;
620
using System.Text.RegularExpressions;
721

22+
using MongoDB.Bson;
23+
824
namespace MongoDB.Driver.Builders
925
{
1026
internal class SimpleQueryBuilder

Driver/Builders/SortByBuilder.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
using System.Collections.Generic;
1818
using System.Linq;
1919
using System.Linq.Expressions;
20+
using System.Text;
21+
2022
using MongoDB.Bson;
2123
using MongoDB.Bson.IO;
2224
using MongoDB.Bson.Serialization;

Driver/Builders/TypedQueryBuilder.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,16 @@
1414
*/
1515

1616
using System;
17-
using System.Collections;
1817
using System.Collections.Generic;
1918
using System.Linq;
20-
using System.Text;
21-
using MongoDB.Driver.Linq;
2219
using System.Linq.Expressions;
23-
using MongoDB.Bson.Serialization;
20+
using System.Text;
21+
using System.Text.RegularExpressions;
22+
2423
using MongoDB.Bson;
25-
using MongoDB.Bson.IO;
24+
using MongoDB.Bson.Serialization;
25+
using MongoDB.Driver.Linq;
2626
using MongoDB.Driver.Linq.Utils;
27-
using System.Text.RegularExpressions;
2827

2928
namespace MongoDB.Driver.Builders
3029
{

Driver/Builders/UpdateBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
using System.Collections.Generic;
1818
using System.Linq;
1919
using System.Linq.Expressions;
20+
using System.Text;
21+
2022
using MongoDB.Bson;
2123
using MongoDB.Bson.IO;
2224
using MongoDB.Bson.Serialization;
@@ -228,9 +230,7 @@ public static UpdateBuilder PopFirst(string name)
228230
/// Removes the last value from the named array element (see $pop).
229231
/// </summary>
230232
/// <param name="name">The name.</param>
231-
/// <returns>
232-
/// The builder (so method calls can be chained).
233-
/// </returns>
233+
/// <returns>The builder (so method calls can be chained).</returns>
234234
public static UpdateBuilder PopLast(string name)
235235
{
236236
return new UpdateBuilder().PopLast(name);

Driver/Linq/MongoQueryProvider.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@
1717
using System.Collections.Generic;
1818
using System.Linq;
1919
using System.Linq.Expressions;
20-
using System.Text;
2120
using System.Reflection;
21+
using System.Text;
22+
23+
using MongoDB.Driver.Linq.Utils;
2224

2325
namespace MongoDB.Driver.Linq
2426
{

0 commit comments

Comments
 (0)