hi
im beginner to openaccess and have some problem
i can not select field for association it is disable
, i have an extra field in table that dos not exist in model
and "name" field save in DB with "nme" name
1 Answer, 1 is accepted
0
Ivailo
Telerik team
answered on 02 Aug 2011, 09:15 AM
Hello Sadeg,
Based on the column names in your database I am guessing you have done forward mapping – you have defined some classes and then applied them to the database. If that is the case:
1. In order to create your association, there are two conditions:
a. You need to have an Identity=True for at least one of the properties of each of the classes participating
b. Both classes should be mapped to a table. You can check that in the Mapping Details Editor – look at the “Mapped to:” combo box and the “Use Default Mapping” checkbox. The checkbox should be unchecked, the proper table should be selected in the combo box and mapping between the fields should be done below.
In any case, I recommend you to do an Update from Database operation in order to bring the table definitions to your model before you try again with the associations – that will ensure that the tables are available in the model.
2. You can always change the column names – they are just auto-generated to have something to start with. This can be done from the Table Editor, which can be opened with the Edit Table... command from the class' context menu.
All the best,
Ivailo
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>