This is a migrated thread and some comments may be shown as answers.

The designer doesn't update the backend providername correctly.

3 Answers 69 Views
Design Time (Visual Designer & Tools)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
rd
Top achievements
Rank 1
rd asked on 22 May 2012, 06:52 PM
The designer doesn't update the backend providername correctly.
I had a model mapped from SqlServer, I tried to change the backend to mysql but the designer keeps changing the
backend's providername to: backend.ProviderName = "System.Data.SqlClient";
I've event forced to be MySql.Data.MySqlClient but it changed it back.

I'm using the version : 2012.1.329.1

public static BackendConfiguration GetBackendConfiguration()
        {
            BackendConfiguration backend = new BackendConfiguration();
            backend.Backend = "mysql";
            backend.ProviderName = "System.Data.SqlClient";
            backend.Logging.LogEvents = LoggingLevel.All;
            backend.Logging.StackTrace = true;
            backend.Logging.MetricStoreSnapshotInterval = 0;
            return backend;
        }

3 Answers, 1 is accepted

Sort by
0
Zoran
Telerik team
answered on 25 May 2012, 10:37 AM
Hello AmbiSIG,

 Currently, after making this change, you can see a warning in the Visual Designer that can be fixed after double-clicking it and selecting it for fixing in the Validation Dialog. We do plan to improve the experience there so that the provider name is automatically calculated when the backend is changed, but this will probably be part of a bigger effort for our product that included introducing support for multiple backends with one .rlinq file.

All the best,
Zoran
the Telerik team
Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
0
rd
Top achievements
Rank 1
answered on 25 May 2012, 02:51 PM
Well... I had to edit the rlinq file using Notepad++ to solve this issue.
How can I edit the Source Code of the ORM?
0
Jan Blessenohl
Telerik team
answered on 25 May 2012, 05:45 PM
Hello,
You can do the same trick with modifying the backend configuration in the on database load method. If you use the connection string from the app/web.config, it is not nessary to set Backend or ProviderName at all. Just set it to null.

All the best,
Jan Blessenohl
the Telerik team
Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Tags
Design Time (Visual Designer & Tools)
Asked by
rd
Top achievements
Rank 1
Answers by
Zoran
Telerik team
rd
Top achievements
Rank 1
Jan Blessenohl
Telerik team
Share this question
or