【发布时间】:2015-08-01 12:21:25
【问题描述】:
您好,我正在尝试使用 .net 4.5 框架创建 Asp.net webforms 应用程序。 我有我现有的数据库,我需要首先使用数据库,同时我需要使用 ASP.identity。我尝试在我的数据库中重新创建默认使用 asp.identity 生成的表,然后生成 .edmx 文件并更改
中的字符串连接名称public ApplicationDbContext()
: base("GoalsDBEntities", throwIfV1Schema: false)
{
}
但不幸的是我收到以下错误
An exception of type 'System.InvalidOperationException' occurred in mscorlib.dll but was not handled in user code
Additional information: The type of ApplicationUser entity not part of the model for the current context.
【问题讨论】:
标签: c# entity-framework webforms asp.net-identity-2