Create a database (.NET)
- Your DocumentDB database can be created by using the CreateDatabaseAsync method of the DocumentClient class. A database is the logical container of JSON document storage partitioned across collections.
- To create your database:
- You can also check if the database already exists and create it if needed: