Skip to content

Commit

Permalink
DOCSP-27679:Make placeholder text consistent (#108)
Browse files Browse the repository at this point in the history
* DOCSP-27679:Make placeholder text consistent

* changing placeholder

* fixed line wraps

(cherry picked from commit 23d1593)
  • Loading branch information
nickldp committed Jul 19, 2023
1 parent fbc47a7 commit 78b641c
Show file tree
Hide file tree
Showing 29 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion source/fundamentals/logging.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ to a ``LoggerFactory``.
b.AddSimpleConsole();
});

var settings = MongoClientSettings.FromConnectionString("<your connection string>");
var settings = MongoClientSettings.FromConnectionString("<connection string>");
settings.LoggingSettings = new LoggingSettings(loggerFactory);
var client = new MongoClient(settings);

Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/delete-many/DeleteMany.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace CSharpExamples.UsageExamples.DeleteMany;
public class DeleteMany
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace CSharpExamples.UsageExamples.DeleteMany;
public class DeleteManyAsync
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static async Task Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/delete-one/DeleteOne.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace CSharpExamples.UsageExamples.DeleteOne;
public class DeleteOne
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/delete-one/DeleteOneAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace CSharpExamples.UsageExamples.DeleteOne;
public class DeleteOneAsync
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static async Task Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/find-many/FindMany.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace CSharpExamples.UsageExamples.FindMany;
public class FindMany
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/find-many/FindManyAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CSharpExamples.UsageExamples.FindMany;
public class FindManyAsync
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static async Task Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/find-one/FindOne.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CSharpExamples.UsageExamples.FindOne;
public class FindOne
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/find-one/FindOneAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace CSharpExamples.UsageExamples.FindOne;
public class FindOneAsync
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static async Task Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/insert-many/InsertMany.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CSharpExamples.UsageExamples.InsertMany;
public class InsertMany
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CSharpExamples.UsageExamples.InsertMany;
public class InsertManyAsync
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static async Task Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/insert-one/InsertOne.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CsharpExamples.UsageExamples.InsertOne;
public class InsertOne
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/insert-one/InsertOneAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CsharpExamples.UsageExamples.InsertOne;
public class InsertOneAsync
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static async Task Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/replace-one/ReplaceOne.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CSharpExamples.UsageExamples.ReplaceOne;
public class ReplaceOne
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CSharpExamples.UsageExamples.ReplaceOne;
public class ReplaceOneAsync
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static async Task Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/update-many/UpdateMany.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace CSharpExamples.UsageExamples.UpdateMany;
public class UpdateMany
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

private const string OldCuisine = "Pizza";
private const string NewCuisine = "Pasta and breadsticks";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace CSharpExamples.UsageExamples.UpdateMany;
public class UpdateManyAsync
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

private const string OldCuisine = "Pizza";
private const string NewCuisine = "Pasta and breadsticks";
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/update-one/UpdateOne.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace CSharpExamples.UsageExamples.UpdateOne;
public class UpdateOne
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/code-examples/update-one/UpdateOneAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace CSharpExamples.UsageExamples.UpdateOne;
public class UpdateOneAsync
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static async Task Main(string[] args)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace TestRun.Fundamentals;
public class CountDocuments
{
private static IMongoCollection<Student> _myColl;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";
public static void Main(string[] args)
{
Setup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
public class AtlasSearchExamples
{
private static IMongoCollection<Guitar> guitarsCollection;
private static string _mongoConnectionString = "<Your MongoDB URI>";
private static string _mongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/fundamentals/code-examples/builders.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace TestRun.Fundamentals;
public class Builders
{
private static IMongoCollection<Flower> _flowerCollection;
private static string _mongoConnectionString = "<Your MongoDB URI>";
private static string _mongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CSharpExamples.Fundamentals.ReplaceOne;
public class ReplaceOne
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<Your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace Fundamentals
public class Update
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private const string MongoConnectionString = "<your MongoDB URI>";
private const string MongoConnectionString = "<connection string>";

private const string OldValue = "Manhattan";
private const string NewValue = "Manhattan (north)";
Expand Down
2 changes: 1 addition & 1 deletion source/includes/fundamentals/code-examples/crud/delete.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace TestRun.Fundamentals;
public class Delete
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private static string _mongoConnectionString = "<Your MongoDB URI>";
private static string _mongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/fundamentals/code-examples/crud/insert.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace TestRun.Fundamentals;
public class Insert
{
private static IMongoCollection<Restaurant> _restaurantsCollection;
private static string _mongoConnectionString = "<Your MongoDB URI>";
private static string _mongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/includes/fundamentals/code-examples/poco.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace DataFormats.Poco;
public class Poco
{
private static IMongoCollection<Clothing> _myColl;
private static string _mongoConnectionString = "<Your MongoDB URI>";
private static string _mongoConnectionString = "<connection string>";

public static void Main(string[] args)
{
Expand Down
2 changes: 1 addition & 1 deletion source/quick-start.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ code.

.. code-block:: bash

export MONGODB_URI='<your MongoDB connection string>'
export MONGODB_URI='<your MongoDB URI>'

.. important::

Expand Down
2 changes: 1 addition & 1 deletion source/usage-examples.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ your MongoDB instance:
.. code-block:: csharp

// Replace the following with your MongoDB deployment's connection string.
private static string _mongoConnectionString = "<Your MongoDB URI>";
private static string _mongoConnectionString = "<connection string>";

For more information about connecting to your MongoDB instance, see the
:ref:`Connection Guide <csharp-connection>`.

0 comments on commit 78b641c

Please sign in to comment.