在Windows 7 SP1上安装VS 2013(更新3)后,我有类似的情况,如在这篇文章中安装Windows 8.1 sdk visual studio无法构建任何win32项目和打印输出:
1>----— Build started: Project: ConsoleApplication1, Configuration: Debug Win32 —----
1>A task was canceled.
1>A task was canceled.
========= Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Run Code Online (Sandbox Code Playgroud) 我正在尝试使用我需要的功能为asp.net Identity 2.0实现自己的DAL.我不需要帐户锁定功能.但是当我试着打电话的时候
var result = await SignInManager.PasswordSignInAsync(model.Login, model.Password, model.RememberMe, shouldLockout: false);
Run Code Online (Sandbox Code Playgroud)
我明白了 System.NotSupportedException:Store does not implement IUserLockoutStore<TUser>.
那么,如果我不需要它,为什么还需要实现IUserLockoutStore呢?
有没有办法配置这样的链MyApp-> Fiddler-> Web代理*->目标服务器?
* Web代理是该列表中的一个。
PS我知道如何配置MyApp-> Fiddler-> Target Server,但是当用户从异常位置(例如从非洲)登录时,我需要测试与情况相关的一些功能
我已经创建了控制台应用程序.然后我执行了Install-Package EntityFramework,设置了目标.net 4.0.
我的简单模型是
public class Abonent
{
public Abonent() {}
[Key]
public int AbonentId { get; set; }
public string Name { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
我的dbcontext是(ModelContext.cs)
public class ModelContext : DbContext
{
public ModelContext():base(){}
public DbSet<Abonent> Abonents { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
Program.cs是
class Program
{
static void Main(string[] args)
{
Database.DefaultConnectionFactory = new System.Data.Entity.Infrastructure.SqlCeConnectionFactory("System.Data.SqlServerCe.4.0");
ModelContext _abonentContext = new ModelContext();
Abonent abonent=new Abonent();
_abonentContext.Abonents.Add(abonent);
_abonentContext.SaveChanges();
}
}
Run Code Online (Sandbox Code Playgroud)
它工作得很好,但是当我按下右键单击ModelContext.cs并选择时Entity Framework -> Generate View,我会得到一个消息框,说"调用目标已抛出异常".
我做错了什么?是否存在ef电动工具的替代品?(VS 2010 SP1,实体框架Power Tools …