@@ -92,11 +92,14 @@ If the result contains `ProvisioningState` with the `Succeeded` value, then the
92
92
var hotCachePeriod = new TimeSpan (3650, 0, 0, 0);
93
93
var softDeletePeriod = new TimeSpan (3650 , 0 , 0 , 0 );
94
94
var databaseName = " mykustodatabase" ;
95
- var database = new Database (location : location , softDeletePeriod : softDeletePeriod , hotCachePeriod : hotCachePeriod );
95
+ var database = new ReadWriteDatabase (location : location , softDeletePeriod : softDeletePeriod , hotCachePeriod : hotCachePeriod );
96
96
97
97
await kustoManagementClient .Databases .CreateOrUpdateAsync (resourceGroupName , clusterName , databaseName , database );
98
98
```
99
99
100
+ [!NOTE ]
101
+ If you are using C # version 2.0.0 or below , use Database instead of ReadWriteDatabase .
102
+
100
103
|**Setting ** | **Suggested value ** | **Field description **|
101
104
|---|---|---|
102
105
| clusterName | *mykustocluster * | The name of your cluster where the database will be created .|
@@ -108,7 +111,7 @@ If the result contains `ProvisioningState` with the `Succeeded` value, then the
108
111
2. Run the following command to see the database that you created :
109
112
110
113
```csharp
111
- kustoManagementClient .Databases .Get (resourceGroupName , clusterName , databaseName );
114
+ kustoManagementClient .Databases .Get (resourceGroupName , clusterName , databaseName ) as ReadWriteDatabase ;
112
115
```
113
116
114
117
You now have a cluster and a database .
0 commit comments