app.config

<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="connection" type="Kairyu.Extensions.Connection.ConnectionSectionHandler, Kairyu.Extensions.Connection"/>
  </configSections>

  <connection running-on="sqlce35">
    <environments>
      <environment name="sqlce35">
        <assembly path="./Kairyu.Extensions.Connection.SqlCe35.dll" type="Kairyu.Extensions.Connection.SqlCe35.SqlServerCeConnector"/>
        <parameter is-encrypt="false" cn-string="Data Source=Database.sdf"/>
      </environment>
      <environment name="sqlserver">
        <assembly path="./Kairyu.Extensions.Connection.SqlServer.dll" type="Kairyu.Extensions.Connection.SqlServer.SqlServerConnector"/>
        <parameter is-encrypt="false" cn-string="Data Source=.\SQLEXPRESS;Initial Catalog=tempdb;Integrated Security=True"/>
      </environment>
      <environment name="sqlserver2012">
        <assembly path="./Kairyu.Extensions.Connection.SqlServer.dll" type="Kairyu.Extensions.Connection.SqlServer.SqlServerConnector"/>
        <parameter is-encrypt="false" cn-string="Data Source=.\SQLEXPRESS;Initial Catalog=tempdb;Integrated Security=True"/>
      </environment>
    </environments>
  </connection>
</configuration>

同項目の詳細はDBに接続するには?参照。

Last edited Mar 30, 2013 at 2:33 PM by mk3008, version 2

Comments

No comments yet.