Skip to content

Instantly share code, notes, and snippets.

@ShawInnes
Created February 3, 2014 12:32
Show Gist options
  • Save ShawInnes/8783073 to your computer and use it in GitHub Desktop.
Save ShawInnes/8783073 to your computer and use it in GitHub Desktop.
Couchbase AutoView Config (ASP.NET)
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