473,387 Members | 1,453 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

best pratice for DB User interface

Hello,
I try to make a user interface for a DB in VB.DOT 2005 with SQL server.
I use auto generate Textbox and datagridview (with BindingSource,
TableAdapter...) with manual add of ComboBox and I have a lot of trouble
when I must change my DB structure and sometime VB lost the link between my
dataset and my component. (certainly a bad choice in my object naming....)
I would like to know :
What is the best way to make user interface with DB ?
How make a easy validation (max size / not empty / valid foreign key) on
input data when there a lot of textbox ?

If existing objects can do that (free or not) it's better, else I will try
to generate it.
Thank you for your help.
Osi Mik
Jun 21 '07 #1
2 1526
OSI Mik wrote:
Hello,
I try to make a user interface for a DB in VB.DOT 2005 with SQL server.
I use auto generate Textbox and datagridview (with BindingSource,
TableAdapter...) with manual add of ComboBox and I have a lot of trouble
when I must change my DB structure and sometime VB lost the link between my
dataset and my component. (certainly a bad choice in my object naming....)
I would like to know :
What is the best way to make user interface with DB ?
It's not to allow the user interface to directly to interact with the
database.
How make a easy validation (max size / not empty / valid foreign key) on
input data when there a lot of textbox ?
You have the code in a business object that does the validation when
user tries to save the object, preferably a business object that has the
data persist logic in it as well, using SQL Command Objects, instead of
dataadapters, datasets and recordsets, etc, etc. You bind a business
object or a collection fo business objects to a control.
>
If existing objects can do that (free or not) it's better, else I will try
to generate it.
Solutions like NHibernate that works with something like CSLA Business
Objects.

On there other hand, you can use the CSLA Framework to understand and
make the base core of objects yourself that are needed to produce a
viable solution that has Opps design concepts.

http://www.lhotka.net/Article.aspx?i...b-e0059cc82ee7
Jun 21 '07 #2
Thank you for your anwser, I will try to apply it.
Osi Mik

"DArnold" <DA*****@DArnold.coma écrit dans le message de news:
eZ**************@TK2MSFTNGP03.phx.gbl...
OSI Mik wrote:
>Hello,
I try to make a user interface for a DB in VB.DOT 2005 with SQL server.
I use auto generate Textbox and datagridview (with BindingSource,
TableAdapter...) with manual add of ComboBox and I have a lot of trouble
when I must change my DB structure and sometime VB lost the link between
my dataset and my component. (certainly a bad choice in my object
naming....)
I would like to know :
What is the best way to make user interface with DB ?

It's not to allow the user interface to directly to interact with the
database.
> How make a easy validation (max size / not empty / valid foreign key) on
input data when there a lot of textbox ?

You have the code in a business object that does the validation when user
tries to save the object, preferably a business object that has the data
persist logic in it as well, using SQL Command Objects, instead of
dataadapters, datasets and recordsets, etc, etc. You bind a business
object or a collection fo business objects to a control.
>>
If existing objects can do that (free or not) it's better, else I will
try to generate it.

Solutions like NHibernate that works with something like CSLA Business
Objects.

On there other hand, you can use the CSLA Framework to understand and make
the base core of objects yourself that are needed to produce a viable
solution that has Opps design concepts.

http://www.lhotka.net/Article.aspx?i...b-e0059cc82ee7

Jun 22 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Tobias[br] | last post by:
hi there people... i´m developing an application where i need 190 input text, in 8 diferent forms.. anyone can tell me the best pratice to save the the data while edit the others forms?...
4
by: David Pinx | last post by:
Greetings, I will be developing an application that will have two versions, a web application to be deployed at the client side and a windows application. The question is, what would be the...
6
by: Andre Ranieri | last post by:
Hello everyone, I'm wondering if I could get some advice on the best way to build the user interface depicted in this diagram: http://www.senske.com/images/winforms_layout.jpg The gray areas...
2
by: kbutterly | last post by:
All, I have a menu which contains Category as the master and Product as the child. When I click on a Category in the menu, I want one formView control, fvpc, to show, and then when I click on...
41
by: Jim | last post by:
Hi guys, I have an object which represents an "item" in a CMS "component" where an "item" in the most basic form just a field, and a "component" is effectively a table. "item" objects can be...
2
by: Paulo Roberto | last post by:
Hi, I have a VS2005 asp.net 2.0 C# application with a lot of screens just like customers, companys, manufacturers wich has always the same basics working like a gridview showing the records, and...
52
by: burgermeister01 | last post by:
First, let me say that this question is a rather general programming question, but the context is PHP, so I figured this group would have the most relevant insight. Anyways, this is also more of...
1
by: Jeff | last post by:
Hey I'm about to start developing an windows application based on .net 2.0. The GUI will consist of 2 things: a treeview and an area displaying things based on selections in the treeview. The...
2
by: xoro | last post by:
Hi, I'm getting a new problem with cursors in triggers. I would like to replace all my cursor fetching in all triggers but i did'nt know which is the best pratice. Here is a sample of my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.