duan
2024-08-21 22bd5bc1ce2b49284cc2f042c7f4f48619fcf85b
提交 | 用户 | age
8eea5c 1 <?xml version="1.0"?>
90c6eb 2 <configuration>
J 3   <configSections>
8eea5c 4     <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
90c6eb 5     <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
8eea5c 6     <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.122.18.3, Culture=neutral, PublicKeyToken=89b483f429c47342"/>
90c6eb 7   </configSections>
J 8   <!--系统配置-->
8eea5c 9   <appSettings configSource="Config\system.config"/>
90c6eb 10   <!--数据库连接字符串-->
8eea5c 11   <connectionStrings configSource="Config\database.config"/>
e415a0 12   <!--
J 13     有关 web.config 更改的说明,请参见 http://go.microsoft.com/fwlink/?LinkId=235367。
14
15     可在 <httpRuntime> 标记上设置以下特性。
16       <system.Web>
17         <httpRuntime targetFramework="4.7.1" />
18       </system.Web>
19   -->
90c6eb 20   <system.web>
J 21     <!-- <identity impersonate="true"/> -->
22     <!--<authentication mode="Windows" />-->
23     <!--关闭系统自带Session-->
8eea5c 24     <sessionState mode="Off"/>
90c6eb 25     <!--globalization统一编码,使用UTF-8格式编码-->
8eea5c 26     <globalization requestEncoding="utf-8" responseEncoding="utf-8"/>
A 27     <compilation debug="true" defaultLanguage="c#" targetFramework="4.7.2"/>
28     <httpRuntime maxRequestLength="1073741824" targetFramework="4.5.2" requestPathInvalidCharacters=""/>
29     <pages validateRequest="false"/>
30     <customErrors mode="Off"/>
90c6eb 31   </system.web>
J 32   <system.webServer>
33     <httpProtocol>
34       <customHeaders>
35         <!--允许跨域-->
8eea5c 36         <add name="Access-Control-Allow-Origin" value="*"/>
A 37         <add name="Access-Control-Allow-Headers" value="*"/>
38         <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE"/>
90c6eb 39       </customHeaders>
J 40     </httpProtocol>
41     <security>
42       <requestFiltering>
8eea5c 43         <requestLimits maxAllowedContentLength="1073741824"/>
90c6eb 44       </requestFiltering>
J 45     </security>
46   </system.webServer>
47   <runtime>
48     <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
49       <dependentAssembly>
8eea5c 50         <assemblyIdentity name="zxing" publicKeyToken="4E88037AC681FE60" culture="neutral"/>
A 51         <bindingRedirect oldVersion="0.0.0.0-0.16.9.0" newVersion="0.16.9.0"/>
90c6eb 52       </dependentAssembly>
J 53       <dependentAssembly>
8eea5c 54         <assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35"/>
A 55         <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
90c6eb 56       </dependentAssembly>
J 57       <dependentAssembly>
8eea5c 58         <assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35"/>
A 59         <bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0"/>
90c6eb 60       </dependentAssembly>
J 61       <dependentAssembly>
8eea5c 62         <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
A 63         <bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0"/>
90c6eb 64       </dependentAssembly>
J 65       <dependentAssembly>
8eea5c 66         <assemblyIdentity name="Npgsql" publicKeyToken="5d8b90d52f46fda7" culture="neutral"/>
A 67         <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0"/>
90c6eb 68       </dependentAssembly>
J 69       <dependentAssembly>
8eea5c 70         <assemblyIdentity name="MySql.Data" publicKeyToken="c5687fc88969c44d" culture="neutral"/>
A 71         <bindingRedirect oldVersion="0.0.0.0-6.9.9.0" newVersion="6.9.9.0"/>
90c6eb 72       </dependentAssembly>
J 73       <dependentAssembly>
8eea5c 74         <publisherPolicy apply="no"/>
A 75         <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral"/>
eab296 76       </dependentAssembly>
J 77       <dependentAssembly>
8eea5c 78         <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
A 79         <bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1"/>
eab296 80       </dependentAssembly>
J 81       <dependentAssembly>
8eea5c 82         <assemblyIdentity name="BouncyCastle.Crypto" publicKeyToken="0e99375e54769942" culture="neutral"/>
A 83         <bindingRedirect oldVersion="0.0.0.0-1.9.0.0" newVersion="1.9.0.0"/>
84       </dependentAssembly>
85       <dependentAssembly>
86         <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral"/>
87         <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0"/>
90c6eb 88       </dependentAssembly>
J 89     </assemblyBinding>
90   </runtime>
91   <entityFramework>
92     <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
93       <parameters>
8eea5c 94         <parameter value="mssqllocaldb"/>
90c6eb 95       </parameters>
J 96     </defaultConnectionFactory>
97     <providers>
8eea5c 98       <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
A 99       <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6"/>
100       <provider invariantName="Npgsql" type="Npgsql.NpgsqlServices, EntityFramework6.Npgsql"/>
101       <provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework"/>
90c6eb 102     </providers>
J 103   </entityFramework>
104   <system.data>
105     <DbProviderFactories>
8eea5c 106       <remove invariant="MySql.Data.MySqlClient"/>
A 107       <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data"/>
108       <remove invariant="Npgsql"/>
109       <add name="Npgsql" invariant="Npgsql" description=".Net Framework Data Provider for Postgresql" type="Npgsql.NpgsqlFactory, Npgsql"/>
110       <remove invariant="Oracle.ManagedDataAccess.Client"/>
111       <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess"/>
90c6eb 112     </DbProviderFactories>
J 113   </system.data>
114   <oracle.manageddataaccess.client>
115     <version number="*">
116       <dataSources>
8eea5c 117         <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) "/>
90c6eb 118       </dataSources>
J 119     </version>
120   </oracle.manageddataaccess.client>
121   <system.codedom>
122     <compilers>
8eea5c 123       <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701"/>
A 124       <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=2.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+"/>
90c6eb 125     </compilers>
J 126   </system.codedom>
127 </configuration>