Show Blogger Panel Hide Blogger Panel
Alex Yakunin

February 11, 2010

Support for connection strings and new way of setting default schema

Connection strings can be specified via provider and connectionString elements in App/Web.config files. Original approach with connection URLs is supported as well.

Example: <domain connectionString="Data Source=localhost; Integrated Security=True" name="test" provider="sqlserver" />

  • Index storages do not support connection strings so far, since we haven't invented a syntax for them yet.
  • provider is the same string as protocol part in connection URL.

Default schema is specified via defaultSchema element.

Example: <domain connectionUrl="sqlserver://localhost/" defaultSchema="dbo" name="test"/>

Default schema can be specified with both connection strings and connection URLs. See Xtensive.Storage.Tests\App.config for various examples.