You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cosmos-db/cassandra/manage-data-dotnet-core.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: TheovanKraay
7
7
ms.author: thvankra
8
8
ms.devlang: csharp
9
9
ms.topic: quickstart
10
-
ms.date: 10/01/2020
10
+
ms.date: 05/02/2020
11
11
ms.custom: devx-track-dotnet, mode-api
12
12
---
13
13
@@ -33,18 +33,17 @@ Azure Cosmos DB is Microsoft's globally distributed multi-model database service
33
33
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)] Alternatively, you can [Try Azure Cosmos DB for free](https://azure.microsoft.com/try/cosmosdb/) without an Azure subscription, free of charge and commitments.
34
34
35
35
In addition, you need:
36
-
*If you don't already have Visual Studio 2019 installed, you can download and use the **free**[Visual Studio 2019 Community Edition](https://www.visualstudio.com/downloads/). Make sure that you enable **Azure development** during the Visual Studio setup.
Now let's switch to working with code. Let's clone a Cassandra API app from GitHub, set the connection string, and run it. You'll see how easy it is to work with data programmatically.
46
+
Now let's switch to working with code. Let's clone a Cassandra API app from GitHub, set the connection string, and run it. You'll see how easily you can work with data programmatically.
48
47
49
48
1. Open a command prompt. Create a new folder named `git-samples`. Then, close the command prompt.
50
49
@@ -190,7 +189,7 @@ Now go back to the Azure portal to get your connection string information and co
190
189
191
190
## Next steps
192
191
193
-
In this quickstart, you've learned how to create an Azure Cosmos DB account, create a container using the Data Explorer, and run a web app. You can now import additional data to your Cosmos DB account.
192
+
In this quickstart, you've learned how to create an Azure Cosmos DB account, create a container using the Data Explorer, and run a web app. You can now import other data to your Cosmos DB account.
194
193
195
194
> [!div class="nextstepaction"]
196
195
> [Import Cassandra data into Azure Cosmos DB](migrate-data.md)
Copy file name to clipboardExpand all lines: articles/cosmos-db/cassandra/manage-data-dotnet.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ author: TheovanKraay
7
7
ms.author: thvankra
8
8
ms.devlang: csharp
9
9
ms.topic: quickstart
10
-
ms.date: 10/01/2020
10
+
ms.date: 05/02/2022
11
11
ms.custom: devx-track-csharp, mode-api
12
12
---
13
13
@@ -33,18 +33,17 @@ Azure Cosmos DB is Microsoft's globally distributed multi-model database service
33
33
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)] Alternatively, you can [Try Azure Cosmos DB for free](https://azure.microsoft.com/try/cosmosdb/) without an Azure subscription, free of charge and commitments.
34
34
35
35
In addition, you need:
36
-
*If you don't already have Visual Studio 2019 installed, you can download and use the **free**[Visual Studio 2019 Community Edition](https://www.visualstudio.com/downloads/). Make sure that you enable **Azure development** during the Visual Studio setup.
Now let's switch to working with code. Let's clone a Cassandra API app from GitHub, set the connection string, and run it. You'll see how easy it is to work with data programmatically.
46
+
Now let's switch to working with code. Let's clone a Cassandra API app from GitHub, set the connection string, and run it. You'll see how easily you can work with data programmatically.
48
47
49
48
1. Open a command prompt. Create a new folder named `git-samples`. Then, close the command prompt.
50
49
@@ -173,7 +172,7 @@ Now go back to the Azure portal to get your connection string information and co
173
172
174
173
## Next steps
175
174
176
-
In this quickstart, you've learned how to create an Azure Cosmos DB account, create a container using the Data Explorer, and run a web app. You can now import additional data to your Cosmos DB account.
175
+
In this quickstart, you've learned how to create an Azure Cosmos DB account, create a container using the Data Explorer, and run a web app. You can now import other data to your Cosmos DB account.
177
176
178
177
> [!div class="nextstepaction"]
179
178
> [Import Cassandra data into Azure Cosmos DB](migrate-data.md)
Copy file name to clipboardExpand all lines: articles/cosmos-db/graph/bulk-executor-graph-dotnet.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to use the bulk executor library to massively import grap
4
4
ms.service: cosmos-db
5
5
ms.subservice: cosmosdb-graph
6
6
ms.topic: how-to
7
-
ms.date: 05/28/2019
7
+
ms.date: 05/02/2020
8
8
author: manishmsfte
9
9
ms.author: mansha
10
10
ms.devlang: csharp
@@ -24,7 +24,7 @@ The [bulk executor library](/dotnet/api/microsoft.azure.cosmosdb.bulkexecutor.gr
24
24
25
25
The following process outlines how data migration can be used for a Gremlin API container:
26
26
1. Retrieve records from the data source.
27
-
2. Construct `GremlinVertex` and `GremlinEdge` objects from the obtained records and add them into an `IEnumerable` data structure. In this part of the application the logic to detect and add relationships should be implemented, in case the data source is not a graph database.
27
+
2. Construct `GremlinVertex` and `GremlinEdge` objects from the obtained records and add them into an `IEnumerable` data structure. In this part of the application the logic to detect and add relationships should be implemented, in case the data source isn't a graph database.
28
28
3. Use the [Graph BulkImportAsync method](/dotnet/api/microsoft.azure.cosmosdb.bulkexecutor.graph.graphbulkexecutor.bulkimportasync) to insert the graph objects into the collection.
29
29
30
30
This mechanism will improve the data migration efficiency as compared to using a Gremlin client. This improvement is experienced because inserting data with Gremlin will require the application send a query at a time that will need to be validated, evaluated, and then executed to create the data. The bulk executor library will handle the validation in the application and send multiple graph objects at a time for each network request.
@@ -70,9 +70,9 @@ catch (Exception e)
70
70
}
71
71
```
72
72
73
-
For more information on the parameters of the bulk executor library, refer to the [BulkImportData to Azure Cosmos DB topic](../bulk-executor-dot-net.md#bulk-import-data-to-an-azure-cosmos-account).
73
+
For more information about the parameters of the bulk executor library, see [BulkImportData to Azure Cosmos DB article](../bulk-executor-dot-net.md#bulk-import-data-to-an-azure-cosmos-account).
74
74
75
-
The payload needs to be instantiated into `GremlinVertex` and `GremlinEdge` objects. Here is how these objects can be created:
75
+
The payload needs to be instantiated into `GremlinVertex` and `GremlinEdge` objects. Here's how these objects can be created:
*Visual Studio 2019 with the Azure development workload. You can get started with the [Visual Studio 2019 Community Edition](https://visualstudio.microsoft.com/downloads/) for free.
* An Azure subscription. You can create [a free Azure account here](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=cosmos-db). Alternatively, you can create a Cosmos database account with [Try Azure Cosmos DB for free](https://azure.microsoft.com/try/cosmosdb/) without an Azure subscription.
116
116
* An Azure Cosmos DB Gremlin API database with an **unlimited collection**. This guide shows how to get started with [Azure Cosmos DB Gremlin API in .NET](./create-graph-dotnet.md).
117
117
* Git. For more information check out the [Git Downloads page](https://git-scm.com/downloads).
@@ -135,9 +135,9 @@ In the `App.config` file, the following are the configuration values that can be
135
135
136
136
Setting|Description
137
137
---|---
138
-
`EndPointUrl`|This is **your .NET SDK endpoint** found in the Overview blade of your Azure Cosmos DB Gremlin API database account. This has the format of `https://your-graph-database-account.documents.azure.com:443/`
138
+
`EndPointUrl`|This is **your .NET SDK endpoint** found in the Overview page of your Azure Cosmos DB Gremlin API database account. This has the format of `https://your-graph-database-account.documents.azure.com:443/`
139
139
`AuthorizationKey`|This is the Primary or Secondary key listed under your Azure Cosmos DB account. Learn more about [Securing Access to Azure Cosmos DB data](../secure-access-to-data.md#primary-keys)
140
-
`DatabaseName`, `CollectionName`|These are the **target database and collection names**. When `ShouldCleanupOnStart` is set to `true` these values, along with `CollectionThroughput`, will be used to drop them and create a new database and collection. Similarly, if `ShouldCleanupOnFinish` is set to `true`, they will be used to delete the database as soon as the ingestion is over. Note that the target collection must be **an unlimited collection**.
140
+
`DatabaseName`, `CollectionName`|These are the **target database and collection names**. When `ShouldCleanupOnStart` is set to `true` these values, along with `CollectionThroughput`, will be used to drop them and create a new database and collection. Similarly, if `ShouldCleanupOnFinish` is set to `true`, they'll be used to delete the database as soon as the ingestion is over. The target collection must be **an unlimited collection**.
141
141
`CollectionThroughput`|This is used to create a new collection if the `ShouldCleanupOnStart` option is set to `true`.
142
142
`ShouldCleanupOnStart`|This will drop the database account and collections before the program is run, and then create new ones with the `DatabaseName`, `CollectionName` and `CollectionThroughput` values.
143
143
`ShouldCleanupOnFinish`|This will drop the database account and collections with the specified `DatabaseName` and `CollectionName` after the program is run.
@@ -147,8 +147,8 @@ Setting|Description
147
147
148
148
### Run the sample application
149
149
150
-
1. Add your specific database configuration parameters in `App.config`. This will be used to create a DocumentClient instance. If the database and container have not been created yet, they will be created automatically.
151
-
2. Run the application. This will call `BulkImportAsync` two times, one to import Vertices and one to import Edges. If any of the objects generates an error when they're inserted, they will be added to either `.\BadVertices.txt` or `.\BadEdges.txt`.
150
+
1. Add your specific database configuration parameters in `App.config`. This will be used to create a DocumentClient instance. If the database and container haven't been created yet, they'll be created automatically.
151
+
2. Run the application. This will call `BulkImportAsync` two times, one to import Vertices and one to import Edges. If any of the objects generates an error when they're inserted, they'll be added to either `.\BadVertices.txt` or `.\BadEdges.txt`.
152
152
3. Evaluate the results by querying the graph database. If the `ShouldCleanupOnFinish` option is set to true, then the database will automatically be deleted.
Copy file name to clipboardExpand all lines: articles/cosmos-db/graph/create-graph-dotnet.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ ms.service: cosmos-db
7
7
ms.subservice: cosmosdb-graph
8
8
ms.devlang: csharp
9
9
ms.topic: quickstart
10
-
ms.date: 02/21/2020
10
+
ms.date: 05/02/2020
11
11
ms.custom: devx-track-dotnet, mode-api
12
12
---
13
13
# Quickstart: Build a .NET Framework or Core application using the Azure Cosmos DB Gremlin API account
@@ -28,7 +28,7 @@ This quickstart demonstrates how to create an Azure Cosmos DB [Gremlin API](grap
28
28
29
29
## Prerequisites
30
30
31
-
If you don't already have Visual Studio 2019 installed, you can download and use the **free**[Visual Studio 2019 Community Edition](https://www.visualstudio.com/downloads/). Make sure that you enable **Azure development** during the Visual Studio setup.
@@ -42,7 +42,7 @@ If you don't already have Visual Studio 2019 installed, you can download and use
42
42
43
43
## Clone the sample application
44
44
45
-
Now let's clone a Gremlin API app from GitHub, set the connection string, and run it. You'll see how easy it is to work with data programmatically.
45
+
Now let's clone a Gremlin API app from GitHub, set the connection string, and run it. You'll see how easy it's to work with data programmatically.
46
46
47
47
1. Open a command prompt, create a new folder named git-samples, then close the command prompt.
48
48
@@ -64,10 +64,10 @@ Now let's clone a Gremlin API app from GitHub, set the connection string, and ru
64
64
65
65
4. Then open Visual Studio and open the solution file.
66
66
67
-
5. Restore the NuGet packages in the project. This should include the Gremlin.Net driver, as well as the Newtonsoft.Json package.
67
+
5. Restore the NuGet packages in the project. This should include the Gremlin.Net driver, and the Newtonsoft.Json package.
68
68
69
69
70
-
6. You can also install the [email protected] driver manually using the Nuget package manager, or the [nuget command-line utility](/nuget/install-nuget-client-tools):
70
+
6. You can also install the [email protected] driver manually using the NuGet package manager, or the [NuGet command-line utility](/nuget/install-nuget-client-tools):
71
71
72
72
```bash
73
73
nuget install Gremlin.NET -Version 3.4.6
@@ -114,7 +114,7 @@ Now go back to the Azure portal to get your connection string information and co
114
114
115
115
1. Next, navigate to the **Keys** tab and copy the **PRIMARY KEY** value from the Azure portal.
116
116
117
-
1. After you have copied the URI and PRIMARY KEY of your account, save them to a new environment variable on the local machine running the application. To set the environment variable, open a command prompt window, and run the following command. Make sure to replace <Your_Azure_Cosmos_account_URI> and <Your_Azure_Cosmos_account_PRIMARY_KEY> values.
117
+
1. After you've copied the URI and PRIMARY KEY of your account, save them to a new environment variable on the local machine running the application. To set the environment variable, open a command prompt window, and run the following command. Make sure to replace <Your_Azure_Cosmos_account_URI> and <Your_Azure_Cosmos_account_PRIMARY_KEY> values.
@@ -132,19 +132,19 @@ You've now updated your app with all the info it needs to communicate with Azure
132
132
133
133
## Run the console app
134
134
135
-
Click CTRL + F5 to run the application. The application will print both the Gremlin query commands and results in the console.
135
+
Select CTRL + F5 to run the application. The application will print both the Gremlin query commands and results in the console.
136
136
137
137
The console window displays the vertexes and edges being added to the graph. When the script completes, press ENTER to close the console window.
138
138
139
139
## Browse using the Data Explorer
140
140
141
141
You can now go back to Data Explorer in the Azure portal and browse and query your new graph data.
142
142
143
-
1. In Data Explorer, the new database appears in the Graphs pane. Expand the database and container nodes, and then click **Graph**.
143
+
1. In Data Explorer, the new database appears in the Graphs pane. Expand the database and container nodes, and thenselect**Graph**.
144
144
145
-
2. Click the **Apply Filter** button to use the default query to view all the vertices in the graph. The data generated by the sample app is displayed in the Graphs pane.
145
+
2. Select the **Apply Filter** button to use the default query to view all the vertices in the graph. The data generated by the sample app is displayed in the Graphs pane.
146
146
147
-
You can zoom in and out of the graph, you can expand the graph display space, add additional vertices, and move vertices on the display surface.
147
+
You can zoom in and out of the graph, you can expand the graph display space, add extra vertices, and move vertices on the display surface.
148
148
149
149
:::image type="content" source="./media/create-graph-dotnet/graph-explorer.png" alt-text="View the graph in Data Explorer in the Azure portal":::
Visual Studio with the Azure development workload. You can get started with the *free*[Visual Studio Community](https://visualstudio.microsoft.com/vs/community/) IDE. Enable the **Azure development** workload during Visual Studio setup.
0 commit comments