Hi,
I have a problem with the (I know, still very experimental)
DifferentDatabaseScope class. Here is my code (or at least a bit of
it):
using (IDbConnection conn = GetMyDbConnection())
{
conn.Open();
using (var diffScope = new DifferentDatabaseScope(conn))
{
// ...
orders = ShopOrders.FindAll();
// ...
}
}
The conn.Open() line works, the connection is opened and works (I
checked that from the server-side). But at the "FindAll" line, an
exception is thrown, with an inner exception saying that the user
"u...@server" is not allowed to SELECT. But the main problem is that
the user name mentioned in the exception is the wrong one, namely the
one defined in my AR configuration, and not the one specified in the
connection (string) coming from "GetMyDbConnection".
So why is AR using the "default" connection instead of the "different"
given connection? I have no more ideas.
Thanks in advance.
Greetings from Germany - Andy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---