{"issue":{"created_at":"2011-12-14T10:12:40Z","state":"open","updated_at":"2011-12-14T10:12:40Z","user":{"gravatar_id":"2699caa90a7428fbbfc09a0d6c15dd31","id":72253,"url":"https://api.github.com/users/mjmeintjes","login":"mjmeintjes","avatar_url":"https://secure.gravatar.com/avatar/2699caa90a7428fbbfc09a0d6c15dd31?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"body":"Hi\r\n\r\nWe are trying to use a custom DatabaseType, inheriting from the SqlServer one.\r\n\r\nThe problem is that as soon as we specify the custom DatabaseType, we get the following error:\r\n\r\n```\r\nSystem.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n   at System.ThrowHelper.ThrowKeyNotFoundException()\r\n   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)\r\n   at roundhouse.infrastructure.persistence.NHibernateSessionFactoryBuilder.build_session_factory(Action`1 additional_function)\r\n2011-12-14 11:36:00,363 [RemoteServerSchedulerClient_Worker-2] ERROR roundhouse - RoundhousE encountered an error. You were running in a transaction though, so the database should be in the state it was in prior to this piece running. This does not include a drop/create or any creation of a database, as those items can not run in a transaction.\r\nSystem.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.\r\n   at System.ThrowHelper.ThrowKeyNotFoundException()\r\n   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)\r\n   at roundhouse.infrastructure.persistence.NHibernateSessionFactoryBuilder.build_session_factory(Action`1 additional_function)\r\n   at roundhouse.databases.DefaultDatabase`1.set_repository()\r\n   at roundhouse.databases.AdoNetDatabase.open_connection(Boolean with_transaction)\r\n   at roundhouse.migrators.DefaultDatabaseMigrator.open_connection(Boolean with_transaction)\r\n   at roundhouse.runners.RoundhouseMigrationRunner.run()\r\n```\r\nIt seems that currently the possible database types are hardcoded in NHibernateSessionFactoryBuilder.\r\n\r\nIs it possible to add a facility to register a new database type?","assignee":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"id":2549593,"labels":[],"number":39,"title":"KeyNotFoundException when trying to use custom DatabaseType","html_url":"https://github.com/chucknorris/roundhouse/issues/39","closed_at":null,"url":"https://api.github.com/repos/chucknorris/roundhouse/issues/39","milestone":null},"action":"opened"}