数据绑定是一个不错的选择?????????? [英] Is Data Binding a Bad Choice ??????????

查看:49
本文介绍了数据绑定是一个不错的选择??????????的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是VB6中级程序员,刚刚开始使用VB.net,如果我只是使用节省时间的技术,我会想知道我会错过什么

喜欢数据绑定,数据适配器向导等来创建我的前端

应用程序。使用手动编码构建数据访问表单似乎很像

就像很多工作......任何指导都会受到赞赏


票价

解决方案

嗨票价,


首先要对数据源进行数据绑定,这样做工作量最大

给你。


对于你问题的更一般部分:


可能你会开始使用巫师们,他们很不错但是经过一段时间后,你会发现他们有些事情是你做的事情,你不想要的,而且他们会开始越来越多地手工做事。


奇怪的是它变得不那么重要了,特别是因为你可能会建立自己的类来为你做这个工作。


我希望这有帮助吗?


Cor

我是VB6中级程序员刚刚开始使用VB.net并且
想问问我' D是,如果我只是用节省时间
技术,如数据绑定,数据适配器向导等创建我的前端
应用程序错过了。使用手动编码构建数据访问表单似乎很多工作......任何指导都将受到赞赏



*"票价Eidi < FA *** @ agricola.gr> scripsit:

我是VB6中级程序员,刚刚开始使用VB.net,如果我只是使用节省时间的技术,我会想知道我会错过什么像数据绑定,数据适配器向导等创建我的前端应用程序。使用手动编码构建数据访问表单似乎很多工作......任何指导都会受到赞赏




为什么不使用这种技术(数据绑定)?介绍是为了让

工作更轻松,所以为什么不在它有用的时候使用呢?


-

Herfried K. Wagner [MVP]

< http://www.mvps.org/dotnet>


Hi Herfried,

数据绑定导致人们大多朝错误的方向开始。

我会使用数据源。


数据绑定乍一看非常复杂,仅需要

控件,它们没有数据源作为文本框,标签,列表视图等。


例如使用组合框, datagrid,listbox是数据源的方式

先行。


只是我的想法


Cor

I am a VB6 intermediate programmer just starting out using VB.net and would
like to ask what I''d be missing out on if I just use time saving techniques
like data binding, data adapter wizards etc to create my front end
application. Building the data access forms using manual coding just seems
like a lot of work.... Any guidance would be appreciated

Fares

解决方案

Hi Fares,

Have for databinding first a look to "Datasource", that does the most work
for you.

And for the more general part of your question:

Probably you will start with using the wizards, they are nice but after a
while, you will see that they somethings do things, that you do not want and
start more and more doing things by hand.

And strange is that it becomes less work, especialy because you probably
will build your own classes which do the job for you.

I hope this helps?

Cor

I am a VB6 intermediate programmer just starting out using VB.net and would like to ask what I''d be missing out on if I just use time saving techniques like data binding, data adapter wizards etc to create my front end
application. Building the data access forms using manual coding just seems
like a lot of work.... Any guidance would be appreciated



* "Fares Eidi" <fa***@agricola.gr> scripsit:

I am a VB6 intermediate programmer just starting out using VB.net and would
like to ask what I''d be missing out on if I just use time saving techniques
like data binding, data adapter wizards etc to create my front end
application. Building the data access forms using manual coding just seems
like a lot of work.... Any guidance would be appreciated



Why not use this technique (data binding)? It was introduced to make
work easier, so why not use it when it''s useful?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


Hi Herfried,

Databinding leads people mostly in the wrong direction for a simple start.
I would use the datasource instead.

Databinding looks at first sight very complex and is only needed for
controls which have no datasource as textbox, labels, listview etc.

By instance with the combobox, datagrid, listbox is the datasource the way
to go first.

Just my thought

Cor


这篇关于数据绑定是一个不错的选择??????????的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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