创建webapi项目时,在configureservices中注册数据库上下文时,提示找不到useinmemorydatabase方法。

 

 打开“工具-nuget包管理器-程序包管理器控制台”,输入“install-package microsoft.entityframeworkcore.inmemory”,回车。