Re: C#, ADO.NET and MS-SQL
From: DJ van Vliet (dougie_at_global.co.za)
Date: 07/19/04
- Next message: Scott Allen: "Re: URGENT:Sending cookie via HttpWebRequest"
- Previous message: Jake: "Help filling comboBox with Week End Dates"
- In reply to: Daniel Billingsley: "Re: C#, ADO.NET and MS-SQL"
- Next in thread: Daniel Billingsley: "Re: C#, ADO.NET and MS-SQL"
- Reply: Daniel Billingsley: "Re: C#, ADO.NET and MS-SQL"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 19 Jul 2004 22:04:55 +0200
Thanks for the reply,
I am going through the two books and making notes.
I have been programming for a 'good' number of years (no commercial Web
or OO development).
The issues I have are that 1) I need to understand how the language
(.NET) processes work so that I can get the best out of the development
system/Language I wish to use, and most importantly, to design the
system 'correctly' (according the the language spec) in the first place.
I know that there will be many iterations, but hopefully no rewrites
from scratch
The issue I have is that ADO.NET applies a disconnected architecture
(open, read,close,open,update database,close), but when capturing data,
eg. Order Entry, Each time the user enters a supplier or stock item, the
database has be be accessed - even if you then add the row to the
RowSet, there is still massive interaction with the database -
open,read,close on each item entered by the operator.
To me this is not good from a 'disconnected' architecture point of view.
As they say in South Africa - Is my thinks okay 'of sit ek die pot mis'
(am I completely on the wrong track)
Dougie
Daniel Billingsley wrote:
> I apoligize for my answer. I was trying to rush out of here and just
> shouldn't have answered.
>
> But it's still true that you've asked some very BIG architecture-level
> questions.
>
> Perhaps if you asked specific questions one by one it would be better.
>
> As for this example below - I'm not sure what you mean by "in a position".
> There's lots of different ways to accomplish what you describe. Some
> people/models avoid datasets altogether and use business object classes to
> gather and valid the information. They may fire a stored procedure - so
> there would never actually be a dataset at all.
>
> As for the 35,000 record issue - that's a general design problem which has
> also been solved numerous ways. One way is instead of having a combo box
> (where listing 35,000 choices wouldn't be real helpful) there is a search
> button next to the field that opens up a more sophisticated search form. As
> someone else mentioned, you could also use some sort of filtering to narrow
> the 35,000 records down to a small bunch the user is *likely* to select from
> in the first place. Maybe a combination of the two.
>
> But the point is there's nothing inherent in ADO.NET that really prohibits
> or limits your ability to make it work however you want.
>
> "DJ van Vliet" <dougie@global.co.za> wrote in message
> news:cdbgvh$bel$1@ctb-nnrp2.saix.net...
>
>>Thanks for the reply,
>>
>>I have a copy of MS ADO.NET step by step and Chris Sells' Windows forms
>>programming in C#
>>
>>The problem is that all these books and articles show pieces of an
>>application - e.g. a DataGrid or a Combo/ListBox containing lookup
>>tables. What happens if there are 35,000 records that could be
>>selected? I do not want to bring all the records across. This means
>>interactive connection to the database while the user is busy capturing
>>- not exactly a distributed method!
>>
>>Let me try and explain it better. (Maybe a short example.)
>>
>>The user requires a new purchase order.
>>
>>Known:
>>Layout of Order header, a supplier is required and Items will be ordered.
>>
>>I need to build up a DataAdapter/DataSet as the new order is being
>
> captured.
>
>>Two tables - Header and Details.
>>
>>Header: selection of Ledger and Supplier.
>>Details: selection of Store and Items
>>
>>Will the DataAdapter/DataSet be in a position to use the Update, Insert
>>and Delete commands to commit changes back to the database?
>>
>
>
>
- Next message: Scott Allen: "Re: URGENT:Sending cookie via HttpWebRequest"
- Previous message: Jake: "Help filling comboBox with Week End Dates"
- In reply to: Daniel Billingsley: "Re: C#, ADO.NET and MS-SQL"
- Next in thread: Daniel Billingsley: "Re: C#, ADO.NET and MS-SQL"
- Reply: Daniel Billingsley: "Re: C#, ADO.NET and MS-SQL"
- Messages sorted by: [ date ] [ thread ]