如何解决此错误没有映射存在,从对象类型system.windows.forms.textbox到已知的mannaged提供者本机类型 [英] how to solve this error no mapping exists from object type system.windows.forms.textbox to a known mannaged provider native type

查看:104
本文介绍了如何解决此错误没有映射存在,从对象类型system.windows.forms.textbox到已知的mannaged提供者本机类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从对象类型system.windows.forms.textbox到已知的mannaged提供者本机类型没有映射当我点击更新按钮时我得到了这个错误.plzzz尽快给出解决方案

no mapping exists from object type system.windows.forms.textbox to a known mannaged provider native type i got this error when i click on update button.plzzz give solution as soon as possible

推荐答案

简单:不要试图将文本框传递给数据库:改为传递TextBox.Text属性。



很可能是你的代码包含一些参数化更新,并且您正在传递TextBox - 只需将.Text添加到TextBox名称的末尾,问题就会解决。
Simple: don't try to pass your Textbox to the database: pass the TextBox.Text property instead.

Chances are that your code contains some parametrized update, and you are passing the TextBox - just add ".Text" to the end of the TextBox name and the problem will go way.


这篇关于如何解决此错误没有映射存在,从对象类型system.windows.forms.textbox到已知的mannaged提供者本机类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆