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

1 posts, 0 answers
  1. Darren
    Darren avatar
    1 posts
    Member since:
    Mar 2016

    Posted 08 Mar 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="http://www.telerik.com/OpenAccess">
        <references>
          <reference assemblyname="MSW.MAPS.HealthRoster.Domain" />
        </references>
        <connections>
          <connection id="DatabaseConnection">
        <!--Server and Database obtained from SettingsManager.ISettings -->
        <backendconfigurationname>mssqlConfiguration</backendconfigurationname>
          </connection>
        </connections>
        <backendconfigurations>
          <backendconfiguration id="mssqlConfiguration" backend="mssql">
            <mappingname>mssqlMapping</mappingname>
            <l2CacheEnabled>true</l2CacheEnabled>
            <l2QueryCacheEnabled>true</l2QueryCacheEnabled>
            <l2CacheMaxObjects>100000</l2CacheMaxObjects>
            <ext.db-key-generator.grabSize>250</ext.db-key-generator.grabSize>
            <runtime commandTimeout="100"></runtime>
          </backendconfiguration>
        </backendconfigurations>
        <mappings current="mssqlMapping">
          <mapping id="mssqlMapping" />
        </mappings>
      </openaccess>

Back to Top