I am having a problem with a private synonym for a sequence when it is used to generate PK values.
Say, I have a table and a sequence in USER1 schema:
USER1.TABLE1
USER1.SEQUENCE1
I created private synonyms for both objects in schema USER2.
I created another user USER3 and granted him full access to the synonyms in USER2 schema.
I created an LLBLGen project, connected as USER2, and added an entity mapped on USER2.TABLE1 synonym. I associated the sequence's synonym with the PK of the USER2.TABLE1.
Now, in my application, I am connecting as USER3. When I try to add a record to TABLE1, I receive an error when executing the following query:
SELECT SEQUENCE1.NEXTVAL FROM DUAL
SEQUENCE1 must be prefixed with USER2 schema as it is a private synonym. It looks like LLBLGen assumes that all sequences' synonyms are public and omits schema names.
Adapter Scenario
Designer: 1.0.2005.1 Final February 19, 2006
SD.LLBLGen.Pro.ORMSupportClasses.NET11: 1.0.2005.1
.NEt 1.1
VS.NET 2003
Thanks,
Mikhail