public static void Create <T>(this Indexing indexing, Action <IndexEntry <T> > config) { var index = new IndexEntry <T>(); config(index); indexing.Create(index); }
/// <summary> /// Create the instance of the database /// </summary> public Database(Settings settings) { Settings = settings; _index = new Indexing(Settings.CouchDb, Settings.Hash); }
/// <summary> /// Create the instance of the database /// </summary> /// <param name="databaseName">name of the database</param> /// <param name="connection">the connection to the database server</param> public Database(string databaseName, Connection connection) { Settings = new Settings2(databaseName, connection); _index = new Indexing(Settings.CouchDb, Settings.Hash); }