Blankman
Blankman

Reputation: 266920

In nHibernate, how can I change the database connection (different db) dynamically?

If I want to do vertical partitioning of my db, how could I change the database connection dynamically on a per query basis?

i.e. userID > 100000 use db1, otherwise use db0.

Upvotes: 0

Views: 1356

Answers (1)

Anton Gogolev
Anton Gogolev

Reputation: 115691

See this.

Upvotes: 2

Related Questions