Example #1
0
        public static void Create <T>(this Indexing indexing, Action <IndexEntry <T> > config)
        {
            var index = new IndexEntry <T>();

            config(index);
            indexing.Create(index);
        }
Example #2
0
 /// <summary>
 /// Create the instance of the database
 /// </summary>
 public Database(Settings settings)
 {
     Settings = settings;
     _index   = new Indexing(Settings.CouchDb, Settings.Hash);
 }
Example #3
0
 /// <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);
 }