PC Review


Reply
Thread Tools Rate Thread

ADO.NET 2.0 Validation

 
 
=?Utf-8?B?R2lvdmFubmk=?=
Guest
Posts: n/a
 
      22nd Nov 2005
Hi all,

Real issue for me here: I'd like to know where it would be best to put
validation and which are the events best suited to deal with such
record-related operations. There are many options, and I seem to be a bit
lost. Many people like the Partial Dataset class as opposed to putting
client-side/control-based validation, while others, its the opposite.

Do TableAdapters fit into the picture anywhere in terms of validation?
How about BindingSource? Should I use that to respond to "Adding New row",
"Deleting", "Modifying", etc... or should I use the DataNavigator? All this
is kind of confusing. Thus, the best place to put validation code and the
best place to capture record navigation (with the possibility to add some
logic). I'd like to use the ErrorProvider, etc...

What is the best practice/modern OOP way of doing things?


Regards,

Giovanni
 
Reply With Quote
 
 
 
 
Luxspes [MCP]
Guest
Posts: n/a
 
      23rd Nov 2005
Giovanni wrote:
> Hi all,
>
> Real issue for me here: I'd like to know where it would be best to put
> validation and which are the events best suited to deal with such
> record-related operations. There are many options, and I seem to be a bit
> lost. Many people like the Partial Dataset class as opposed to putting
> client-side/control-based validation, while others, its the opposite.
>
> Do TableAdapters fit into the picture anywhere in terms of validation?
> How about BindingSource? Should I use that to respond to "Adding New row",
> "Deleting", "Modifying", etc... or should I use the DataNavigator? All this
> is kind of confusing. Thus, the best place to put validation code and the
> best place to capture record navigation (with the possibility to add some
> logic). I'd like to use the ErrorProvider, etc...
>
> What is the best practice/modern OOP way of doing things?


Mmmm.... IMHO the only REAL "best practice/modern OOP way of doing
things" is... to stop using the DataSet and start using
an Object Relational Mapper (or build your own one)

http://sharptoolbox.com/Category7408...f27e20cfb.aspx

IMHO one of the best is NHibernate and it is opensource, but the license
allows for commercial use



>
>
> Regards,
>
> Giovanni

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP Validation flaw makes the validation tool useless itwasntmegov Windows XP General 6 16th Apr 2008 07:00 PM
Custom Wizard Control Validation: MultipleTextBox Validation To Keep ActiveStep Current clintonG Microsoft Dot NET 0 22nd Mar 2007 05:54 PM
Re: Validation (Drop down list vs simple text length validation) Bob Phillips Microsoft Excel Programming 2 27th Apr 2004 07:47 PM
Re: Validation (Drop down list vs simple text length validation) Jason Morin Microsoft Excel Programming 1 27th Apr 2004 04:56 PM
Validation (Drop down list vs simple text length validation) Pete McCosh Microsoft Excel Programming 0 27th Apr 2004 03:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:29 AM.