ObjectContext而不是DbContext(ObjectContext instead of DbContext)
我对EntityFramewok完全陌生,但我必须在下周的截止日期前与我的朋友写一个项目。 他创建了数据访问层并与我共享代码。 使用ADO.NET实体数据模型后,我发现他的类中有错误。 看来他使用了我没有的Add()方法。 在快速搜索后,我发现他为Context生成的模板在DbContext和ObjectContext之后继承。 为什么会这样呢? 我们使用相同版本的EntityFramework。
I'm completely new to EntityFramewok but I have to write a project with my friend with deadline next week. He created Data Access Layer and shared code with me. After using ADO.NET Entity Data Model I found errors in his classes. It appeared that he used Add() method which I don't have. After quick search I found that his generated templated for Context inherits after DbContext and mine after ObjectContext. Why does it happen so? We are using the same version of EntityFramework.
原文:https://stackoverflow.com/questions/20383501
最满意答案
看起来设备上运行的gdbserver处于错误状态。
尝试重新启动设备然后
apportable just_debug
如果仍有问题,请在问题中添加Android设备和Android版本。
It looks like there is a gdbserver running on the device in a bad state.
Try rebooting the device and then
apportable just_debug
If there are still issues, add the Android device and Android version to the question.
相关问答
更多-
使用Attach Api时出错(Error while using Attach Api)[2023-08-12]
实际上,当你的系统中有不同的jdks并且所有的都包含在类路径中时,这个问题就会发生。 Actually, This problem orignates when you have diffrent jdks in your system and all are included on the class path. -
我的帐户有管理员权限,但是我觉得我应该尝试运行DelphiXE作为管理员 - 使用“以管理员身份运行”选项启动它。 我得到提示'你想允许......' - 点击是,Delphi跑了。 设置我的进程并挂钩并跟踪我的代码 - 进程名称现在可见,我可以附加到我的IIS进程并在Delphi调试器中进行调试。 无论出于何种原因,我无需在我之前的部署中执行此步骤 - 但问题已解决。 My account has admin rights, but it hit me that I should try running ...
-
这是Apportable SDK 1.1.04版本的回归。 解决方法是在“sqlite_3_7_5”的configuration.json中添加一个dep(或者回到1.1.03)。 此错误报告中的更多详细信息。 This was a regression in the Apportable SDK 1.1.04 release. The workaround is to add a dep to configuration.json of "sqlite_3_7_5" (or go back to 1.1. ...
-
由于这个问题被标记为asp.net我假设你试图附加到IIS的w3wp.com进程? 此过程偶尔会被回收并重新启动它,您需要先浏览到本地页面,然后才能将项目附加到该页面。 By virtue of this question being tagged as asp.net I assume you are trying to attach to IIS's w3wp.com process? This process is being recycled once in a while and to resta ...
-
Visual Studio代码 - 通过“Attach”进行调试在Mac OS上不起作用(Visual Studio Code - debug by “Attach” does not work on Mac OS)[2022-11-04]
我从MS支持团队得到了答案,它现在就像一个冠军:)爱VSCode和团队如此之多。 下面是VSCode团队的Andre Weinand的回答: 在“连接”模式下,VSCode调试器需要连接到节点运行时的调试端口,默认情况下该端口使用端口5858.调试器无法使用节点程序正在服务的“站点”。 那么你能确保你正在用正确的调试参数启动你的节点程序,例如node --debug-brk program.js或node --debug-brk = 3000 program.js 第一个使用默认端口5858,您将不得不相应 ... -
看起来设备上运行的gdbserver处于错误状态。 尝试重新启动设备然后apportable just_debug 如果仍有问题,请在问题中添加Android设备和Android版本。 It looks like there is a gdbserver running on the device in a bad state. Try rebooting the device and then apportable just_debug If there are still issues, add the ...
-
该代码从stdin读取两次: sys.stdin.read() 。 该方法从该流中读取直到其结束(不像“运行”示例中的行结束)。 它只能被调用一次,之后你不应该触碰stdin 。 如果您想逐行读取输入行,请使用sys.stdin.readline() 。 The code reads twice from stdin: sys.stdin.read(). This method reads from that stream until its end (not the end of the line as ...
-
尝试这个: 启动运行命令框,然后粘贴%LOCALAPPDATA%\Microsoft\WebsiteCache 。 这里删除你的网站文件夹,然后再试一次。 希望能帮助到你! Try this: Launch Run command box and then paste in %LOCALAPPDATA%\Microsoft\WebsiteCache. Here delete your website folder and then try again. Hope it helps!
-
您是否验证了长路径(C:\ Documents and Settings \ USER \ Local Settings \ Apps \ 2.0 \ Data \ MP63M1NA.ZG5 \ BCOVJJWN.C53 \ smas..tion_ddac366ea7cca062_0001.0000_9c79a710d42895b6 \ Data \ SmasDb.mdf)以查看是否那里确实有一个数据库? 从错误消息中的三个选项,我会去: 或指定的文件无法打开 您必须考虑数据库的位置(在非开发人员计算机上) ...
-
编译器抱怨缺少选择器insertSublayer:atIndex:在CALayer - 这是在您未在此处显示的代码中的_sharingView ivar上使用的。 出错的原因是CALayer未在apportable中完全实现。 请参阅apportable论坛中的讨论: http://forum.apportable.com/t/core-ios-sdk-compatibility/31/3 http://forum.apportable.com/t/core-ios-sdk-compatibility/31 ...