小编rhu*_*ter的帖子

EF添加迁移抛出System.OutOfMemoryException

当我尝试通过PM添加迁移文件时,我得到内存不足异常.其他人之前遇到过这个问题并碰巧知道如何修复它?到目前为止,我已经尝试重新安装VS 2013无济于事

监视我的内存使用情况我有12GB可用,并且在添加迁移运行时使用的内存少于8,所以应该可以使用.以下是输出

PM> add-migration test
Run Code Online (Sandbox Code Playgroud)

System.OutOfMemoryException:抛出了类型'System.OutOfMemoryException'的异常.在
System.Data.Entity.Migrations.Design.ToolingFacade.Run(BaseRunner runner)的System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)处于System.Data.Entity.Migrations.Design.ToolingFacade.Scaffold(String migrationName,String language,String)位于System.Data.Entity.Migrations.AddMigrationCommand.Execute(String name,Boolean force,Boolean ignoreChanges)的System.Data.Entity.Migrations.AddMigrationCommand.<> c__DisplayClass2.<.ctor> b__0()at的rootNamespace,Boolean ignoreChanges) System.Data.Entity.Migrations.MigrationsDomainCommand.Execute(Action command)抛出了类型'System.OutOfMemoryException'的异常.

c# entity-framework out-of-memory

8
推荐指数
2
解决办法
3217
查看次数

标签 统计

c# ×1

entity-framework ×1

out-of-memory ×1