public Database(string path, string databaseName) { if (string.IsNullOrEmpty(path)) throw new ArgumentNullException("path"); if (string.IsNullOrEmpty(databaseName)) throw new ArgumentNullException("databaseName"); _server = MagpieServer.Create(path); _database = _server.GetDatabase(databaseName); }