Skip to content

Commit 40be77e

Browse files
committed
CSHARP-1749: Code review changes.
1 parent cd88629 commit 40be77e

File tree

5 files changed

+15
-20
lines changed

5 files changed

+15
-20
lines changed

src/MongoDB.Driver.Core/Core/Misc/Feature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class Feature
3030
private static readonly Feature __aggregateOut = new Feature("Aggregate", new SemanticVersion(2, 6, 0));
3131
private static readonly Feature __bypassDocumentValidation = new Feature("BypassDocumentValidation", new SemanticVersion(3, 2, 0));
3232
private static readonly CollationFeature __collation = new CollationFeature("Collation", new SemanticVersion(3, 3, 11));
33-
private static readonly Feature __commandsWriteConcern = new CollationFeature("CommandsWriteConcern", new SemanticVersion(3, 3, 11));
33+
private static readonly Feature __commandsWriteConcern = new Feature("CommandsWriteConcern", new SemanticVersion(3, 3, 11));
3434
private static readonly Feature __createIndexesCommand = new Feature("CreateIndexesCommand", new SemanticVersion(3, 0, 0));
3535
private static readonly Feature __currentOpCommand = new Feature("CurrentOpCommand", new SemanticVersion(3, 2, 0));
3636
private static readonly Feature __documentValidation = new Feature("DocumentValidation", new SemanticVersion(3, 2, 0));

src/MongoDB.Driver.Core/Core/Operations/CreateViewOperation.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ public class CreateViewOperation : IWriteOperation<BsonDocument>
4343
/// <summary>
4444
/// Initializes a new instance of the <see cref="CreateCollectionOperation" /> class.
4545
/// </summary>
46-
/// <param name="databaseNamespace">Name of the database.</param>
47-
/// <param name="viewName">Name of the view.</param>
48-
/// <param name="viewOn">The view on.</param>
46+
/// <param name="databaseNamespace">The name of the database.</param>
47+
/// <param name="viewName">The name of the view.</param>
48+
/// <param name="viewOn">The name of the collection that the view is on.</param>
4949
/// <param name="pipeline">The pipeline.</param>
5050
/// <param name="messageEncoderSettings">The message encoder settings.</param>
5151
public CreateViewOperation(
@@ -120,10 +120,10 @@ public string ViewName
120120
}
121121

122122
/// <summary>
123-
/// Gets the collection namespace.
123+
/// Gets the name of the collection that the view is on.
124124
/// </summary>
125125
/// <value>
126-
/// The collection namespace.
126+
/// The name of the collection that the view is on.
127127
/// </value>
128128
public string ViewOn
129129
{

src/MongoDB.Driver.Legacy/Builders/CreateViewOptionsBuilder.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@
1313
* limitations under the License.
1414
*/
1515

16-
using System;
17-
using System.Collections.Generic;
18-
using System.Linq;
19-
using System.Text;
20-
using System.Threading.Tasks;
2116
using MongoDB.Bson;
2217
using MongoDB.Bson.Serialization;
2318
using MongoDB.Bson.Serialization.Attributes;

src/MongoDB.Driver.Legacy/MongoDatabase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,10 @@ public virtual CommandResult CreateCollection(string collectionName, IMongoColle
288288
}
289289

290290
/// <summary>
291-
/// Creates the view.
291+
/// Creates a view.
292292
/// </summary>
293-
/// <param name="viewName">Name of the view.</param>
294-
/// <param name="viewOn">The view on.</param>
293+
/// <param name="viewName">The name of the view.</param>
294+
/// <param name="viewOn">The name of the collection that the view is on.</param>
295295
/// <param name="pipeline">The pipeline.</param>
296296
/// <param name="options">The options.</param>
297297
/// <returns></returns>

src/MongoDB.Driver/IMongoDatabase.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,24 @@ public interface IMongoDatabase
6363
Task CreateCollectionAsync(string name, CreateCollectionOptions options = null, CancellationToken cancellationToken = default(CancellationToken));
6464

6565
/// <summary>
66-
/// Creates the view.
66+
/// Creates a view.
6767
/// </summary>
6868
/// <typeparam name="TDocument">The type of the input documents.</typeparam>
6969
/// <typeparam name="TResult">The type of the pipeline result documents.</typeparam>
70-
/// <param name="viewName">Name of the view.</param>
71-
/// <param name="viewOn">The view on.</param>
70+
/// <param name="viewName">The name of the view.</param>
71+
/// <param name="viewOn">The name of the collection that the view is on.</param>
7272
/// <param name="pipeline">The pipeline.</param>
7373
/// <param name="options">The options.</param>
7474
/// <param name="cancellationToken">The cancellation token.</param>
7575
void CreateView<TDocument, TResult>(string viewName, string viewOn, PipelineDefinition<TDocument, TResult> pipeline, CreateViewOptions<TDocument> options = null, CancellationToken cancellationToken = default(CancellationToken));
7676

7777
/// <summary>
78-
/// Creates the view.
78+
/// Creates a view.
7979
/// </summary>
8080
/// <typeparam name="TDocument">The type of the input documents.</typeparam>
8181
/// <typeparam name="TResult">The type of the pipeline result documents.</typeparam>
82-
/// <param name="viewName">Name of the view.</param>
83-
/// <param name="viewOn">The view on.</param>
82+
/// <param name="viewName">The name of the view.</param>
83+
/// <param name="viewOn">The name of the collection that the view is on.</param>
8484
/// <param name="pipeline">The pipeline.</param>
8585
/// <param name="options">The options.</param>
8686
/// <param name="cancellationToken">The cancellation token.</param>

0 commit comments

Comments
 (0)