1
czw
2025-07-03 99da99b13c68c5f2b82da2764d54b92b1b598657
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <configSections>
        <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework"/>
    </configSections>
    <connectionStrings>
        <add name="NFineDbContext" connectionString="Data Source=DESKTOP-DSS9VVU;Initial Catalog=OIDATABASE;User ID=sa;Password=aux!123;" providerName="System.Data.SqlClient"/>
    </connectionStrings>
    <entityFramework>
        <providers>
    
            <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
        </providers>
    </entityFramework>
    <appSettings>
        <!--启动实例数量限制-->
        <add key="InstanceLimit" value="1"/>
        <!--是否自动启动PLC(1是,0否)-->
        <add key="AutoRunPlc" value="1"/>
        <!--日志目录-->
        <add key="LogDir" value="D:\WCS.LogDB"/>
        <!--日志文件名-->
        <add key="LogFile" value="S7Log"/>
        <!--日志保存期限(天)-->
        <add key="LogDelDays" value="30"/>
        <!--日志删除等级-->
        <add key="LogDelLevel" value="3"/>
        <!--是否开启调试日志Debug(1是,0否)-->
        <add key="LogDebug" value="1"/>
        <!--是否开启通知日志Info(1是,0否)-->
        <add key="LogInfo" value="1"/>
        <!--是否开启警告日志Warn(1是,0否)-->
        <add key="LogWarn" value="1"/>
        <!--是否开启错误日志Error(1是,0否)-->
        <add key="LogError" value="1"/>
        <!--Redis服务地址-->
        <add key="RedisServerSession" value="127.0.0.1:6379"/>
        <!--Redis读取池-->
        <add key="RedisMaxReadPool" value="1000"/>
        <!--Redis写入池-->
        <add key="RedisMaxWritePool" value="1000"/>
        <!--是否自动启动PLC(1是,0否)-->
        <add key="AutoRunPLC" value="1"/>
        <!--Redis数据库-->
        <add key="RedisDefaultDb" value="DB0"/>
        <!--sql去除char(n)末尾空格-->
        <add key="sql_TrimEndSpace" value="true"/>
    </appSettings>
    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding maxBufferSize="2147483647" maxReceivedMessageSize="2147483647"/>
            </basicHttpBinding>
        </bindings>
        <client/>
        <services>
            <service name="MyServices">
                <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
                <host>
                    <baseAddresses>
                    </baseAddresses>
                </host>
            </service>
        </services>
        <behaviors>
            <serviceBehaviors>
                <behavior>
                    <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True"/>
                    <serviceDebug includeExceptionDetailInFaults="False"/>
                </behavior>
            </serviceBehaviors>
        </behaviors>
    </system.serviceModel>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/></startup></configuration>