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

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

0 Answers 35 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Darren
Top achievements
Rank 1
Darren asked on 08 Mar 2016, 04:38 PM
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>

Tags
Getting Started
Asked by
Darren
Top achievements
Rank 1
Share this question
or