I'm working with a legacy table which I cannot change. The database have a settings table which consists of a lot of columns (one for each setting) and only one row:
Columns: Setting1 | Setting2 | Setting3 | etc...
----------+--------------+-----------+-------------
Row1: SomeValue | AnotherValue | LastValue | etc...
Now, this would be all fine if it wasn't for the fact that the table lacks a primary key. Obviously, the original developer didn't think it was necessary, as there's only one single row.
Is there any way of mapping this with Nhibernate? I've already implemented a SQL based solution, but I'd love to have the flexibility and simplicity gained with Nhibernate.
I'm fearing the worst but, any ideas?