C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\appsettings.Development.json
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\appsettings.json
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\WebApi.exe
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\WebApi.deps.json
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\WebApi.runtimeconfig.json
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\WebApi.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\WebApi.pdb
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Azure.Core.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Azure.Identity.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\linq2db.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.AspNetCore.JsonPatch.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.AspNetCore.Mvc.NewtonsoftJson.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.AspNetCore.OpenApi.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.Bcl.AsyncInterfaces.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.Data.SqlClient.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.EntityFrameworkCore.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.EntityFrameworkCore.Abstractions.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.EntityFrameworkCore.Relational.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.EntityFrameworkCore.SqlServer.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.Identity.Client.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.Identity.Client.Extensions.Msal.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.IdentityModel.Abstractions.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.IdentityModel.JsonWebTokens.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.IdentityModel.Logging.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.IdentityModel.Protocols.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.IdentityModel.Protocols.OpenIdConnect.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.IdentityModel.Tokens.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.OpenApi.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.SqlServer.Server.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Microsoft.Win32.SystemEvents.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\MySqlConnector.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Newtonsoft.Json.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Newtonsoft.Json.Bson.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Pomelo.EntityFrameworkCore.MySql.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Swashbuckle.AspNetCore.Swagger.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Swashbuckle.AspNetCore.SwaggerGen.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\Swashbuckle.AspNetCore.SwaggerUI.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\System.Configuration.ConfigurationManager.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\System.Drawing.Common.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\System.IdentityModel.Tokens.Jwt.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\System.Memory.Data.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\System.Runtime.Caching.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\System.Security.Cryptography.ProtectedData.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\System.Security.Permissions.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\System.Windows.Extensions.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\runtimes\unix\lib\netcoreapp3.1\Microsoft.Data.SqlClient.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\runtimes\win\lib\netcoreapp3.1\Microsoft.Data.SqlClient.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\runtimes\win-arm\native\Microsoft.Data.SqlClient.SNI.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\runtimes\win-arm64\native\Microsoft.Data.SqlClient.SNI.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\runtimes\win-x64\native\Microsoft.Data.SqlClient.SNI.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\runtimes\win-x86\native\Microsoft.Data.SqlClient.SNI.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\runtimes\win\lib\netcoreapp3.0\Microsoft.Win32.SystemEvents.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\runtimes\unix\lib\netcoreapp3.0\System.Drawing.Common.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\runtimes\win\lib\netcoreapp3.0\System.Drawing.Common.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\runtimes\win\lib\netstandard2.0\System.Runtime.Caching.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.EntityFrameworkCore.MySql)\WebApi\bin\Debug\net7.0\runtimes\win\lib\netstandard2.0\System.Security.Cryptography.ProtectedData.dll
C:\Users\Administrator\Desktop\shopDemo(引用Pomelo.Ent
没有合适的资源?快使用搜索试试~ 我知道了~
230125-017shopDemo(新建连接字符串实例化EntityFrameworkCore中间件)
共291个文件
dll:85个
cs:67个
cache:30个
需积分: 8 0 下载量 27 浏览量
2023-01-25
12:26:37
上传
评论
收藏 8.78MB RAR 举报
温馨提示
1 “System.InvalidOperationException: The ConnectionString property has not been initialized.”异常 1.1 异常产生原因: 一般情况下启动项中存在appsettings.json文件,且该文件中持久化存储着指定数据库软件指定数据库的连接设定数据,当前程序启动时已经完成了EntityFrameworkCore中间件的实例化,所有不会产生上述异常。但是如果启动项中不存在appsettings.json文件,且定数据库软件指定数据库的连接设定数据是通过前端页面设定时,如果在控制器类的构造方法中直接使用EntityFrameworkCore中间件实例时,这里就会由于连接字符串参数实例的缺失,直接使用构建方法中的EntityFrameworkCore中间件实例就会出现上述异常。 1.2 解决方案: 以动态方式实例化EntityFrameworkCore中间件。 注意: 以动态方式实例化EntityFrameworkCore中间件时,控制器类的构造方法中不能定义与Enti
资源推荐
资源详情
资源评论
收起资源包目录
230125-017shopDemo(新建连接字符串实例化EntityFrameworkCore中间件) (291个子文件)
shopdemo.projects.v5.2 11.95MB
shopdemo.metadata.v5.2 863KB
_IsIncrementalBuild 41B
_IsIncrementalBuild 41B
_IsIncrementalBuild 39B
_IsIncrementalBuild 39B
_IsIncrementalBuild 39B
_IsIncrementalBuild 39B
Core.csproj.BuildWithSkipAnalyzers 0B
WebApi.csproj.BuildWithSkipAnalyzers 0B
Framework.csproj.BuildWithSkipAnalyzers 0B
Data.csproj.BuildWithSkipAnalyzers 0B
WebApi.csproj.AssemblyReference.cache 222KB
Framework.csproj.AssemblyReference.cache 211KB
Data.csproj.AssemblyReference.cache 206KB
Core.csproj.AssemblyReference.cache 177KB
Data.csproj.AssemblyReference.cache 111KB
Core.csproj.AssemblyReference.cache 91KB
WebApi.assets.cache 45KB
Framework.assets.cache 41KB
Data.assets.cache 41KB
Data.assets.cache 35KB
project.nuget.cache 11KB
project.nuget.cache 10KB
project.nuget.cache 10KB
Core.assets.cache 3KB
project.nuget.cache 1000B
Core.assets.cache 232B
Core.AssemblyInfoInputs.cache 42B
Core.csproj.CoreCompileInputs.cache 42B
Core.AssemblyInfoInputs.cache 42B
Core.csproj.CoreCompileInputs.cache 42B
WebApi.AssemblyInfoInputs.cache 42B
WebApi.genruntimeconfig.cache 42B
WebApi.csproj.CoreCompileInputs.cache 42B
Framework.AssemblyInfoInputs.cache 42B
Framework.csproj.CoreCompileInputs.cache 42B
Data.AssemblyInfoInputs.cache 42B
Data.AssemblyInfoInputs.cache 42B
Data.csproj.CoreCompileInputs.cache 42B
Data.csproj.CoreCompileInputs.cache 42B
WebApi.MvcApplicationPartsAssemblyInfo.cache 0B
applicationhost.config 84KB
WebApi.csproj.CopyComplete 0B
Framework.csproj.CopyComplete 0B
Data.csproj.CopyComplete 0B
Data.csproj.CopyComplete 0B
NopFileProvider.cs 44KB
INopFileProvider.cs 29KB
CommonHelper.cs 22KB
AppDomainTypeFinder.cs 22KB
Engine.cs 12KB
ServiceCollectionExtensions.cs 12KB
SecureRandomNumberGenerator.cs 8KB
QueryableExtension.cs 8KB
EFCoreContext.cs 7KB
ExpressionExtension.cs 7KB
IEngine.cs 6KB
EngineContext.cs 5KB
DataSettingsManager.cs 5KB
WebAppTypeFinder.cs 5KB
AppSettingsHelper.cs 5KB
DataConfig.cs 5KB
AsyncIQueryableExtensions.cs 5KB
User.cs 5KB
PagedList.cs 4KB
NopException.cs 4KB
AppSettings.cs 4KB
BaseSingleton.cs 4KB
ITypeFinder.cs 4KB
ParameterRebinder.cs 4KB
DbStartup.cs 3KB
Singleton.cs 3KB
NoJsonDataBaseTestController.cs 3KB
EnumerableExtension.cs 3KB
PermissionRoleBuilder.cs 3KB
IPagedList.cs 2KB
DependencyInjectionStartup.cs 2KB
IStartup.cs 2KB
UserBuilder.cs 2KB
UserRoleBuilder.cs 2KB
PermissionRole.cs 2KB
UserRole.cs 2KB
MulDatabaseTestController.cs 2KB
DataProviderType.cs 2KB
Role.cs 2KB
MessageModel.cs 2KB
RoleBuilder.cs 2KB
IConfig.cs 2KB
PermissionBuilder.cs 2KB
Program.cs 2KB
Permission.cs 2KB
ApplicationBuilderExtensions.cs 1KB
Framework.AssemblyInfo.cs 1010B
WebApi.AssemblyInfo.cs 1001B
Core.AssemblyInfo.cs 997B
Data.AssemblyInfo.cs 997B
Core.AssemblyInfo.cs 995B
Data.AssemblyInfo.cs 995B
ILogicDeletedEntity.cs 857B
共 291 条
- 1
- 2
- 3
资源评论
zhoujian_911
- 粉丝: 1191
- 资源: 323
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功