Hi Walaa,
Given below are the namespaces for both projects (Oracle 10g and SQL Server 2005)
Oracle namespaces
using RMSYSBilling.DataAdapter;
using RMSYSBilling.DataAdapter.DatabaseSpecific;
using RMSYSBilling.DataAdapter.EntityClasses;
using RMSYSBilling.DataAdapter.FactoryClasses;
using RMSYSBilling.DataAdapter.HelperClasses;
using RMSYSBilling.DataAdapter.RelationClasses;
using RMSYSBilling.DataAdapter.TypedViewClasses;
Sql Server namespaces
using BillingTrades.DataAdapter;
using BillingTrades.DataAdapter.DatabaseSpecific;
using BillingTrades.DataAdapter.EntityClasses;
using BillingTrades.DataAdapter.FactoryClasses;
using BillingTrades.DataAdapter.HelperClasses;
using BillingTrades.DataAdapter.RelationClasses;
Code snippet:
using (DataAccessAdapter adapter = new DataAccessAdapter())
{
EntityCollection<DealTypeEntity> dealEntityColl = new EntityCollection<DealTypeEntity>();
blows-out at DataAccessAdapter and EntityCollection<DealTypeEntity> by throwing this err:
'DataAccessAdapter' is an ambiguous reference between 'RMSYSBilling.DataAdapter.DatabaseSpecific.DataAccessAdapter' and 'BillingTrades.DataAdapter.DatabaseSpecific.DataAccessAdapter'.
and
'EntityCollection' is an ambiguous reference between 'RMSYSBilling.DataAdapter.HelperClasses.EntityCollection<BillingTrades.DataAdapter.EntityClasses.DealTypeEntity>' and 'BillingTrades.DataAdapter.HelperClasses.EntityCollection<BillingTrades.DataAdapter.EntityClasses.DealTypeEntity>'
Thanks,
Abrar
Walaa wrote:
You have posted the same post 4 times!!
I'll remove the excess ones.
(EDIT)
I am referencing the adapter namespaces for each of them.
When i am trying to call the EntityCollection it gives me an ambiguous reference error.
When using any of the generatred objects (eg. EntityCollection), use a fully qualified name.
If this doesn't solve your problem, please post a code snippet with the appropriate namespace using statments shown.