This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to use OA to set up a DAL to a multi-tenant many to many database, but I'm having trouble setting up my DAL.
Thou I get the following message:
Error 1 OpenAccess Error: Telerik.OpenAccess: Updating SQL schema failed. Using a duplicate column name attempted for field 'staffSite' of class 'ClassLibrary.Site'.
There seems to be another field 'staffSite' defined in the model using the same name 'tenantid'.
You must specify an unique column name for the field 'staffSite' explicitly. Open the 'Forward Mapping' dialog from OpenAccess, select the class 'ClassLibrary.Site' and field 'staffSite' and set an explicit column name. This generates the needed db-column extension in the config file. Data
Error 2 OpenAccess Error: Using a duplicate column name attempted for field 'staffSite' of class 'ClassLibrary.Site'.
There seems to be another field 'staffSite' defined in the model using the same name 'tenantid'.
You must specify an unique column name for the field 'staffSite' explicitly. Open the 'Forward Mapping' dialog from OpenAccess, select the class 'ClassLibrary.Site' and field 'staffSite' and set an explicit column name. This generates the needed db-column extension in the config file. Data
I have a class library called "Entities" which holds my reverse mapped presistant classes.
I have a class library called "Data" which has a reference to entities, and is suppose to have the data access layer.
(I also have my Silverlight server-client project, thou these are not used yet)
Here is a picture of my database diagram
The unique thing about my setup is that The staff site has 3 variables: staffid, siteid, tenantid
The two sets of foreign keys are:
i) staffid, tenantid
ii) siteid, tenantid
(And ADO EFM fail at mapping these correctly -or at least I fail at mapping them with ADO, hence why I'm trying OpenAccess)
Can anyone help me sort this out?
Also, the forward mapper gives this error
Error 1 OpenAccess: Field 'staff' of class 'ClassLibrary.CashSale' is the master of a shared column 'tenantid', but a second reference field 'banking' tries to master this column too.
Columns can only be shared between a simple and a reference field. Usually, the reference field is the master and the simple field is the slave.
How do I resolve this?
I'm trying to use OA to set up a DAL to a multi-tenant many to many database, but I'm having trouble setting up my DAL.
Thou I get the following message:
Error 1 OpenAccess Error: Telerik.OpenAccess: Updating SQL schema failed. Using a duplicate column name attempted for field 'staffSite' of class 'ClassLibrary.Site'.
There seems to be another field 'staffSite' defined in the model using the same name 'tenantid'.
You must specify an unique column name for the field 'staffSite' explicitly. Open the 'Forward Mapping' dialog from OpenAccess, select the class 'ClassLibrary.Site' and field 'staffSite' and set an explicit column name. This generates the needed db-column extension in the config file. Data
Error 2 OpenAccess Error: Using a duplicate column name attempted for field 'staffSite' of class 'ClassLibrary.Site'.
There seems to be another field 'staffSite' defined in the model using the same name 'tenantid'.
You must specify an unique column name for the field 'staffSite' explicitly. Open the 'Forward Mapping' dialog from OpenAccess, select the class 'ClassLibrary.Site' and field 'staffSite' and set an explicit column name. This generates the needed db-column extension in the config file. Data
I have a class library called "Entities" which holds my reverse mapped presistant classes.
I have a class library called "Data" which has a reference to entities, and is suppose to have the data access layer.
(I also have my Silverlight server-client project, thou these are not used yet)
Here is a picture of my database diagram
The unique thing about my setup is that The staff site has 3 variables: staffid, siteid, tenantid
The two sets of foreign keys are:
i) staffid, tenantid
ii) siteid, tenantid
(And ADO EFM fail at mapping these correctly -or at least I fail at mapping them with ADO, hence why I'm trying OpenAccess)
Can anyone help me sort this out?
Also, the forward mapper gives this error
Error 1 OpenAccess: Field 'staff' of class 'ClassLibrary.CashSale' is the master of a shared column 'tenantid', but a second reference field 'banking' tries to master this column too.
Columns can only be shared between a simple and a reference field. Usually, the reference field is the master and the simple field is the slave.
How do I resolve this?