This question is locked. New answers and comments are not allowed.
Greetings!
I have removed unwanted fields and other tables to keep it short. What matters is this <extension key="db-table-name" value="Queue" />.
*** edit - i had to remove my config files, code and error stack as it is apparently against my company policy folks! sorry about that! ***
I have changed the Namespace and the name of the Persistent classes to be different. But they will map to tables having the same name in 2 different databases.
*** edit - i had to remove my config files, code and error stack as it is apparently against my company policy folks! sorry about that! ***
And this is the error I get when the control hits the bold line in the above snippet.
*** edit - i had to remove my config files, code and error stack as it is apparently against my company policy folks! sorry about that! ***
I have also followed what was posted in response at this thread: ERROR during Multiple Persistent Class Reference. I still keep getting the same error.
I'm using OpenAccess ORM with Visual Studio 2008 for my projects. I have a situation where I need to connect to different databases and in a couple of databases, the table names are the same.
Here is what I've done:
ASP.NET C# Web Application - PostBackListener (which contains the DAL)
Class Library - TechData(persistent classes - reverse mapped to DB)
Class Library - Outbound (persistent classes - reverse mapped to DB)
Class Library - CallOutbound (persistent classes - reverse mapped to DB)
All the class libraries have been added as reference to the Web application and then the project is properly enabled for ORM access.
In Outbound & CallOutbound, I have 2 tables Queue & Results in both Databases.
Here are my config files
*** edit - i had to remove my config files, code and error stack as it is apparently against my company policy folks! sorry about that! ***
I have removed unwanted fields and other tables to keep it short. What matters is this <extension key="db-table-name" value="Queue" />.
*** edit - i had to remove my config files, code and error stack as it is apparently against my company policy folks! sorry about that! ***
I have changed the Namespace and the name of the Persistent classes to be different. But they will map to tables having the same name in 2 different databases.
Web.config - PostBackListener
*** edit - i had to remove my config files, code and error stack as it is apparently against my company policy folks! sorry about that! ***
So here is my code which throws an error:
*** edit - i had to remove my config files, code and error stack as it is apparently against my company policy folks! sorry about that! ***
So here is my code which throws an error:
*** edit - i had to remove my config files, code and error stack as it is apparently against my company policy folks! sorry about that! ***
And this is the error I get when the control hits the bold line in the above snippet.
*** edit - i had to remove my config files, code and error stack as it is apparently against my company policy folks! sorry about that! ***
I have also followed what was posted in response at this thread: ERROR during Multiple Persistent Class Reference. I still keep getting the same error.
I have even specified separate Namespaces and separate class names for the tables.
Any help in this regard would be greatly appreciated.