Hi,
I installed the lastest express version of Linqconnect and created two DataContexts for Oracle/MySql; however, non of them can be recognized/resolved by c# codes. Is there anything else I need to do in order for them to work?
I am using Visual Studio premium 2012
Thanks
DataContext can not be resolved
Re: DataContext can not be resolved
Could you please specify this issue in more details. For example:however, non of them can be recognized/resolved by c# codes.
1) Whether the code for these models is generated, i.e. whether the *.Designer.cs files are available in your project? The code is automatically generated when you save the model if one of the available templates is available for the model - expand the Templates node in Model Explorer - there should be at least one template, e.g. 'LinqConnect'.
If there is no template, please do the following steps (for both models):
- open Model Explorer;
- select "New Template" from the shortcut menu of the "Templates" node and then select the "LinqConnect" template;
- save changes to generate the code for model.
2) What exactly errors/warnings you are getting; specify their full texts.
Also, you can send us your sample project so that we are able to investigate the issue in more details and find a solution for you.
Re: DataContext can not be resolved
Thanks for the help.
I tried the things you suggested, did some cleanup and reinstalling. It now works fine. I guess the issue was that I installed the old version first and tried to install new version. Somehow, somewhere went wrong. I am glad that I can use it now.
I tried the things you suggested, did some cleanup and reinstalling. It now works fine. I guess the issue was that I installed the old version first and tried to install new version. Somehow, somewhere went wrong. I am glad that I can use it now.
Re: DataContext can not be resolved
Glad to see that the issue was resolved. If you have any further questions, feel free to contact us.