Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Cake.DocumentDb.IntegrationTests.Collection
Cake.DocumentDb.IntegrationTests.Database
Cake.DocumentDb.IntegrationTests.Deletions
Cake.DocumentDb.IntegrationTests.Hydration
Cake.DocumentDb.IntegrationTests.Migration
Cake.DocumentDb.IntegrationTests.Seed
Cake.DocumentDb
tools
.gitignore
Cake.DocumentDb.sln
LICENSE.md
README.md
cake-documentdb-two.sql
cake-documentdb.sql
collection.cake
collection.ps1
database.cake
database.ps1
deletions.cake
deletions.ps1
hydration.cake
hydration.ps1
migration.cake
migration.ps1
seed.cake
seed.ps1

README.md

Cake.DocumentDb

A Cake Addin for Document Db.

cakebuild.net

Join the chat at https://gitter.im/cake-build/cake

Functionality

Supports creating databases, collections and seeding documents when given an assembly which has types implementing ICreateDocumentDatabase, ICreateDocumentDatabaseCollection and ISeedDocument.

Usage

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=="
            });
    });
You can’t perform that action at this time.