@@ -92,11 +92,15 @@ 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 # client of version 2.0.0 or below , please use "Database " object instead of "ReadWriteDatabase ".
102
+
103
+
100
104
|**Setting ** | **Suggested value ** | **Field description **|
101
105
|---|---|---|
102
106
| clusterName | *mykustocluster * | The name of your cluster where the database will be created .|
@@ -108,7 +112,7 @@ If the result contains `ProvisioningState` with the `Succeeded` value, then the
108
112
2. Run the following command to see the database that you created :
109
113
110
114
```csharp
111
- kustoManagementClient .Databases .Get (resourceGroupName , clusterName , databaseName );
115
+ kustoManagementClient .Databases .Get (resourceGroupName , clusterName , databaseName ) as ReadWriteDatabase ;
112
116
```
113
117
114
118
You now have a cluster and a database .
0 commit comments