A Cake Addin for Document Db.
Supports creating databases, collections and seeding documents when given an assembly which has types implementing ICreateDocumentDatabase, ICreateDocumentDatabaseCollection and ISeedDocument.
To use the addin just add it to Cake call the aliases and configure any settings you want.
#addin "Cake.DocumentDb"
...
// Running Seeds
Task("Document-Seed")
.Does(() =>
{
RunDocumentSeed(
@"C:\myfilepath\Cake.Example.Seeds.dll",
new DocumentConnectionSettings {
Endpoint = "https://localhost:8081",
Key = "C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw=="
});
});