PC Review


Reply
Thread Tools Rate Thread

Best practices

 
 
Willian Lopes
Guest
Posts: n/a
 
      13th May 2008
Hi everybody.
I´m starting with C# and .NET. So, I have some difficulties with some codes.
I´m already a programmer and I´m migrating from Delphi to C#. My questions
are:

1) Into a form I´ve made my connection string and my SqlConnection variable.
Now, I want use this connection to insert data from the form into table and,
of course, get some data from a table for a search. My doubt is that to much
people adviced me to don´t use DataSets ´cause they´re slow and get to much
system´s memory. So, how do I retrieve and insert this data without
DataSets? I read a lof ot tutorials but each of show a differente manner and
opinion.

2) Is there a manner to use dataBingding without DataSet?

Thanks for help!

Willian Lopes

 
Reply With Quote
 
 
 
 
Cor Ligthert[MVP]
Guest
Posts: n/a
 
      13th May 2008
Willian,

Is always nice to see messages like yours, they tell you that DataSets are
slow, however most the alternatives are less quick.

Therefore ask the one who said this to you about an alternative and ask him
a guarantee that it is quicker.

Some people use a dataset to make a copy of all the data in memory, then
they don't succeed and show their failures by saying things like you have
heard and go back to the old simulating punch card systems on disk they were
used to.

About the memory, be aware that OOP programming is not anymore using
principles of 1980, it is for sure spending more memory. Although the
assemblies (Exe/DLL) are extremely small compared to programs made by
languages from before the time of Net.

Cor

"Willian Lopes" <(E-Mail Removed)> schreef in bericht
news:(E-Mail Removed)...
> Hi everybody.
> I´m starting with C# and .NET. So, I have some difficulties with some
> codes. I´m already a programmer and I´m migrating from Delphi to C#. My
> questions are:
>
> 1) Into a form I´ve made my connection string and my SqlConnection
> variable. Now, I want use this connection to insert data from the form
> into table and, of course, get some data from a table for a search. My
> doubt is that to much people adviced me to don´t use DataSets ´cause
> they´re slow and get to much system´s memory. So, how do I retrieve and
> insert this data without DataSets? I read a lof ot tutorials but each of
> show a differente manner and opinion.
>
> 2) Is there a manner to use dataBingding without DataSet?
>
> Thanks for help!
>
> Willian Lopes


 
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
Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging.LoggingExceptionHandler,Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Logging,Version=2.0.0.0, Culture=neutral, PublicKeyToken=null from configuration couldnot be created. golla.venkatesulu@gmail.com Microsoft Dot NET Framework 0 7th Jan 2008 03:40 PM
'using' best practices xzzy Microsoft C# .NET 3 17th Oct 2005 06:29 AM
Best Practices =?Utf-8?B?VElCTQ==?= Microsoft ADO .NET 5 26th May 2004 11:29 PM
best practices david Microsoft ASP .NET 1 24th Nov 2003 03:20 PM
Best practices Ian Williamson Microsoft Dot NET Compact Framework 2 12th Aug 2003 05:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:35 PM.