Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

Vista - Best practices

Reply
 
Old 05-12-2008   #1 (permalink)
Willian Lopes


 
 

Best practices

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


My System SpecsSystem Spec
Old 05-13-2008   #2 (permalink)
Cor Ligthert[MVP]


 
 

Re: Best practices

William,

The Best practise is not to multipost in dotNet newsgroups.
Use crossposting if you want.

I have answered in an other newsgroup on this message.

Cor


"Willian Lopes" <profwillian@xxxxxx> schreef in bericht
news:eKc6WmJtIHA.3804@xxxxxx
Quote:

> 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
My System SpecsSystem Spec
Old 05-13-2008   #3 (permalink)
Breno P. Lucena


 
 

Re: Best practices

On 12 maio, 22:35, "Willian Lopes" <profwill...@xxxxxx> wrote:
Quote:

> 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
Hi Willian,

Answering the first:

You can create a LIST<> of object that can be bindable into some data
components.

Answering the second:

Yes, there is!
The same mentioned above.

[]´s Breno.
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
VPC Naming Conventions/Best Practices Question Virtual PC
Hyper V best practices and questions Virtual Server
Best practices for GUI of what called in MFC custom controls .NET General
Best practices? PowerShell
Variable scopes. Best practices? PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46