Cannot set runtime attributes via configuration in Database.Get(string,xmlElement)

Thread is closed for posting
1 posts, 0 answers
  1. Darren
    Darren avatar
    1 posts
    Member since:
    Mar 2016

    Posted 08 Mar 2016 Link to this post

    Our product uses the Database.Get(connectionId,configOverride) to get the database.  The backend configuration settings are used but cannot set any of the runtime settings.


    The actual runtime setting I want to set is the commandTimeout one.  I actually have to put the value with quotes round it to compile.

    <openaccess xmlns="">
          <reference assemblyname="MSW.MAPS.HealthRoster.Domain" />
          <connection id="DatabaseConnection">
        <!--Server and Database obtained from SettingsManager.ISettings -->
          <backendconfiguration id="mssqlConfiguration" backend="mssql">
            <runtime commandTimeout="100"></runtime>
        <mappings current="mssqlMapping">
          <mapping id="mssqlMapping" />

Back to Top