Implementing conditional fluent mapping according to db -


i'm working 2 different db's in app, big(oracle) 1 online mode , small(sqlce) 1 offline mode.

the problem mappings, id generation strategy not same, need custom implementation on sqlce(something sequences negative direction).

how can achieve ability, without mapping contain if's

instead of manually setting it, can define convention? have 1 if, convention load @ session factory config time. or maybe none if convention can examine way dialect being used (though don't know if fluent nhibernate objects available conventions supports that).


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -