App.config 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  5. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  6. </configSections>
  7. <connectionStrings>
  8. <!--<add name="Default" connectionString="Server=localhost; Database=MqttMsgDb; User Id=sa;Password=123456" providerName="System.Data.SqlClient" />-->
  9. <add name="Default" connectionString="Server=localhost; Database=MqttServerDb; User Id=sa;Password=123456" providerName="System.Data.SqlClient" />
  10. <add name="redis" connectionString="127.0.0.1:6379,password=123456,abortConnect=false" />
  11. <!-- Redis -->
  12. <!--<add name="Model1" connectionString="data source=(LocalDb)\MSSQLLocalDB;initial catalog=MqttMsgServer.Model1;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />-->
  13. </connectionStrings>
  14. <startup>
  15. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
  16. </startup>
  17. <entityFramework>
  18. <providers>
  19. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  20. </providers>
  21. </entityFramework>
  22. <runtime>
  23. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  24. <dependentAssembly>
  25. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  26. <bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
  27. </dependentAssembly>
  28. <dependentAssembly>
  29. <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  30. <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
  31. </dependentAssembly>
  32. <dependentAssembly>
  33. <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  34. <bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
  35. </dependentAssembly>
  36. </assemblyBinding>
  37. </runtime>
  38. </configuration>