Hi Sathish,
Each model has an app.config file where the connection and mapping settings are kept. First of all make sure that the connection ids in app.config files in both models are different. Note that if you change the connection id of a model, it should be changed in the corresponding ObjectScopeProvider class as well (in the methods where it is used). This two connections have to be set also in the app.config file of the project that uses the models. (In your case - the OM project). If there is no app.config file in that project, create it. It should contains the two different connections and references to their models. The file should be similar to this:
The
connection sections can be copy-pasted from the app.config files of the models. Then just add the necessary reference tags.
Note also that in order to work with a persistent model, the same model's ObjectScopeProvider class has to be used for obtaining an object scope. Hope that helps.
Sincerely yours,
Alexander
the Telerik team