简体   繁体   English

Dapper.net错误与SqlMapper.cs

[英]Dapper.net error with SqlMapper.cs

I started a new project using vb.net and micro ORM DAPPER.NET . 我使用vb.net和微型ORM DAPPER.NET启动了一个新项目。 Over nuGet I integrated the dapper and dapper.simpleCRUD . 通过nuGet,我集成了dapper和dapper.simpleCRUD。 My problem is appears when i want to execute some CRUD operations i have a problem with SqlMapper.cs .I do not know whay because I successfully integrated into the project a "dapper.simpleCRUD" extension . 我的问题出现在我想执行某些CRUD操作时,但SqlMapper.cs却有问题。我不知道为什么,因为我成功地将“ dapper.simpleCRUD”扩展集成到项目中。 What am doing wrong?? 怎么了?

错误

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

I try manual to add SqlMapper.cs file and i get this: 我尝试手动添加SqlMapper.cs文件,我得到了:

在此处输入图片说明

The IDE is simply presenting a confusing UI here. IDE只是在这里呈现一个令人困惑的UI。 The problem is not that SqlMapper.cs is missing. 问题在于缺少SqlMapper.cs Rather, some exception has happened (presumably a SQL error), and rather than simply show you the failure, the IDE is attempting to show you the original point where the error is detected as code . 相反,发生了一些异常(可能是SQL错误),IDE并没有简单地向您显示故障,而是试图向您显示将错误检测为代码的原始点。 Which it doesn't have! 它没有! Basically, ignore the request for SqlMapper.cs - that is just the IDE having a bad day. 基本上, 忽略对SqlMapper.cs的请求 -这只是IDE表现不好的一天。 What you actually need to do here is to focus on finding the exception . 实际上真正需要做的是专注于发现异常 That might be hidden in another window, or it might appear when you click one of the buttons. 可能隐藏在另一个窗口中,或者当您单击其中一个按钮时可能会出现。 In the worst case, just run the code outside of the IDE - the IDE can't stick its nose in if it isn't running! 在最坏的情况下,只需在IDE外部运行代码 -如果IDE不运行,它就无法坚持到底! You should eventually find the actual exception, which is probably either a ADO.NET connection failure, or invalid SQL being used. 您最终应该找到实际的异常,它可能是ADO.NET连接失败或正在使用无效的SQL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM