Can't get LinqConnect Designer to come up?

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
BlackCentipede
Posts: 2
Joined: Mon 21 Dec 2015 19:19

Can't get LinqConnect Designer to come up?

Post by BlackCentipede » Mon 21 Dec 2015 19:24

Hello, I've own this product for a while and really loved the features. As of recent, I can't get the designer to come up for several model files unless I create entirely new model files to get the designer to come back up. Do I have to re-create every model files everytime designer go away or is there a way to fix this?

The only error I get is that it can't find a designer file something like this:

*DataContext.designer.cs not found (I've checked and verified the path, it IS found.)

Is there anyway to forcibly re-generate designer.cs file?

Please and thank you.

I'm on Visual Studio 2015 Community Edition and I own LinqConnect Professional Edition.

MariiaI
Devart Team
Posts: 1472
Joined: Mon 13 Feb 2012 08:17

Re: Can't get LinqConnect Designer to come up?

Post by MariiaI » Tue 22 Dec 2015 10:24

Please perform the following steps:
1) Open your project with the LinqConnect model in Visual Studio.
2) Select Properties from the shortcut menu of the *.lqml file and check that "Custom Tool" is set to DevartLinqToSQLGenerator.
3) Open your model (*.lqml file) in Entity Developer; e.g. right-click the model file (*.lqml) and select "Open With..." from the shortcut menu. In the opened window select "Devart Entity Developer", click "Set as Default" and then "OK".
4) Expand the Templates node in Model Explorer - there should be at least one template, e.g. 'LinqConnect'. When working in Visual Studio, the code is generated automatically when the model is saved, valid and if one of the available templates is available for this model. If template is not added to the model yet, you can add it to the model via the Add Template dialog box.
5) Save the changes. The *.Designer.cs file should be generated.

JIC: you can also forcibly re-generate model files by right-clicking the model file (*.lqml) and selecting "Run Custom Tool" from the shortcut menu.

Besides, if you recently upgraded your LinqConnect, there could be some issues while uninstalling/installing newer version. Please also try performing these steps:
1) uninstall LinqConnect and other Devart products, which can use common assemblies (e.g., dotConnect for Oracle);
2) clear these folders:
- Program Files (x86)\Devart\dotConnect
- Program Files (x86)\Devart\Entity Developer
- Program Files (x86)\Common Files\Devart\dotConnect
- Program Files (x86)\Common Files\Devart\Entity Developer
- Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\PrivateAssemblies\Devart;
3) remove all Devart.* and policy.*.Devart.* files from the GAC:
- C:\Windows\assembly\GAC_MSIL\;
- C:\Windows\Microsoft.NET\assembly\GAC_MSIL
4) install LinqConnect (run installation package as administrator) and other Devart products, if necessary, with compatible versions.

Make sure, that during uninstalling/installing all Visual Studio instances are closed.

If all these steps don't help, please send us test project with your model, so that we could investigate the issue in more details.

BlackCentipede
Posts: 2
Joined: Mon 21 Dec 2015 19:19

Re: Can't get LinqConnect Designer to come up?

Post by BlackCentipede » Mon 28 Dec 2015 18:25

Sorry for late response, it seems your suggestion worked. :D

Visual Studio 2015 for some reason didn't default the file to be opened with "Entity Developer", but after setting the default it worked again.

Thank you!

Post Reply