This question is locked. New answers and comments are not allowed.
Hi,
My project involves multiple modules, where each have their own set of persistent classes and fetch plans defined.Currently In this OM module, I want to use some of the functionality of the PLM module. The PLM module contains its PLM.BL.BO (persistent classes) and my current module OM contains OM.BL.BO (persistent classes). Both may work on the same database and may have the same table names. I get the following error. Basically the error is that the DAO (objectscope prodiver) in the OM module is reading the PLM.BL.BO as well when it is not supposed to. How do I restrict my DAO to ready only within my module.
Thank you.
Server Error in '/ERP.OM.WEB' Application.
Using a duplicate table name attempted for table 'UOMTypes' of class 'ERP.OM.BL.BO.UOMType'.
There seems to be table mapping defined in class 'ERP.PLM.BL.BO.UOMType' using the same name.
You
must explicitly specify a different table name for class
'ERP.OM.BL.BO.UOMType'. Open the 'Forward Mapping' dialog from
OpenAccess, select the class 'ERP.OM.BL.BO.UOMType' and set the table
name. This generates the needed db-table-name extension in the config
file.
Description: An
unhandled exception occurred during the execution of the current web
request. Please review the stack trace for more information about the
error and where it originated in the code. Exception Details: Telerik.OpenAccess.Exceptions.MetadataException: Using a duplicate table name attempted for table 'UOMTypes' of class 'ERP.OM.BL.BO.UOMType'.
There seems to be table mapping defined in class 'ERP.PLM.BL.BO.UOMType' using the same name.
You must explicitly specify a different table name for class 'ERP.OM.BL.BO.UOMType'. Open the 'Forward Mapping' dialog from OpenAccess, select the class 'ERP.OM.BL.BO.UOMType' and set the table name. This generates the needed db-table-name extension in the config file.
Source Error:
Line 77: Dim db As Database = Database() |
Source File: C:\Documents and Settings\...\ERP\OpenAccess ORM\In Progress\ERP.OM\ERP.OM.DA\DAO.vb Line: 79
Stack Trace:
[MetadataException: Using a duplicate table name attempted for table 'UOMTypes' of class 'ERP.OM.BL.BO.UOMType'. |
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053