ef Code frist的enable-migrations [英] enable-migrations for ef Code frist
本文介绍了ef Code frist的enable-migrations的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
hi
写封装管理器控制台启用 - 迁移为ef代码frist
查看此错误:
参数不正确。 (来自HRESULT的异常:0x80070057(E_INVALIDARG))
hi
when write Package Manager Console enable-migrations for ef Code frist
View this error :
The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
推荐答案
您的问题不太清楚。
以下可能有所帮助:
MSDN:代码优先迁移 [ ^ ]
(HRESULT: 0x80070057(E_INVALIDARG))关于调试 [ ^ ]
清除项目的临时框架文件:
C :\ WINDOWS \ MicroStoswork \ Framework \v2.0.50727 \Temporary ASP.NET Files \
对于Windows 7,路径为:C:\ Users \ [用户名] \ AppData \ Local \Temp \Temporary ASP.NET Files \
对于路径中带有框架的64位系统,完整路径为:C:\ WINDOWS\Microsoft。 NET\Framework64 \v2.0.50727 \Temporary ASP.NET Files \
Your question is not too clear.
Following might help:
MSDN: Code First Migrations[^]
(HRESULT: 0x80070057 (E_INVALIDARG)) on debug [^]
Clear out the temporary framework files for your project in:
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\
For Windows 7, the path is: C:\Users\[username]\AppData\Local\Temp\Temporary ASP.NET Files\
For 64 bit systems with ''Framework'' in the path the full path is: C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Temporary ASP.NET Files\
这篇关于ef Code frist的enable-migrations的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文