BudSystemLimited / Cake.DocumentDb

MIT License
1 stars 0 forks source link

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=="
            });
    });