Created
February 3, 2014 12:32
-
-
Save ShawInnes/8783073 to your computer and use it in GitHub Desktop.
Couchbase AutoView Config (ASP.NET)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CouchbaseConfig | |
{ | |
public static void RegisterModelViews(IEnumerable<Assembly> assemblies) | |
{ | |
var builder = new ViewBuilder(); | |
builder.AddAssemblies(assemblies.ToList()); | |
var designDocs = builder.Build(); | |
var ddManager = new DesignDocManager(); | |
ddManager.Create(designDocs); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment