mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2025-04-05 17:38:01 +08:00
50 lines
2.4 KiB
XML
50 lines
2.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<configuration>
|
|
<configSections>
|
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
|
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
|
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
|
|
</configSections>
|
|
<connectionStrings>
|
|
<add name="OpenAuthDBContext" connectionString="Data Source=.;Initial Catalog=OpenAuthDB;Persist Security Info=True;User ID=sa;Password=000000;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
|
|
</connectionStrings>
|
|
<log4net>
|
|
<appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender">
|
|
<!--定义文件存放位置-->
|
|
<file value="log\\" />
|
|
<appendToFile value="true" />
|
|
<rollingStyle value="Date" />
|
|
<datePattern value="yyyyMMdd'.txt'" />
|
|
<staticLogFileName value="false" />
|
|
<param name="MaxSizeRollBackups" value="100" />
|
|
<layout type="log4net.Layout.PatternLayout">
|
|
<conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" />
|
|
</layout>
|
|
</appender>
|
|
<root>
|
|
<level value="INFO" />
|
|
<!--文件形式记录日志-->
|
|
<appender-ref ref="RollingLogFileAppender" />
|
|
</root>
|
|
</log4net>
|
|
<entityFramework>
|
|
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
|
<parameters>
|
|
<parameter value="mssqllocaldb" />
|
|
</parameters>
|
|
</defaultConnectionFactory>
|
|
<providers>
|
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
|
|
</providers>
|
|
</entityFramework>
|
|
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /></startup>
|
|
<runtime>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
|
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
</runtime>
|
|
</configuration>
|