The designer doesn't update the backend providername correctly.

4 posts, 0 answers
  1. rd
    rd avatar
    20 posts
    Member since:
    Jun 2007

    Posted 22 May 2012 Link to this post

    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;
            }
  2. Zoran
    Admin
    Zoran avatar
    534 posts

    Posted 25 May 2012 Link to this post

    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!
  3. DevCraft banner
  4. rd
    rd avatar
    20 posts
    Member since:
    Jun 2007

    Posted 25 May 2012 Link to this post

    Well... I had to edit the rlinq file using Notepad++ to solve this issue.
    How can I edit the Source Code of the ORM?
  5. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 25 May 2012 Link to this post

    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!
Back to Top