🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.pl.comp.lang.csharp
Article #518

Re: DataSet i DataAdapter

#518
From: Robert G
Date: Sat, 21 Feb 2004 21:51
17 lines
1917 bytes
Wszystko sie zgadza, co napisales. Problem siedzial w tym ze przekazywalem
do metody ktora wywolywala Dataadapter.Update dataset ktory byl podbindowany
do formularza, i nie wiedziec czemu dataadapter wywolal Inserta na rekordzie
ktory mu przeslalem a ktory byl juz w bazie to pomimo tego ze wylecial
exception to rekord zmienial stan a Added na Unchanged. I ten stan jakims
cudem byl kopiowany do tego datasetu w formularzu chcociaz do metody
przekazywalem go bez "ref" czyli jakrozumiem nie przez referencje.
Jak zrobilem kopie zmienionych rekordow metoda GetChanges i ja przeslalem,
to jak sie wywalilo, to zmiany RecordState odwzorowane byly w tej kopi ktora
po zakonczeniu sie kasowala, a ja moglem zmienic pole formularza, ktore ma
byc unikatowe i ponownie wywolac Metoda dopisujaca poniewaz rekord pozostal
wstanie Added.

W kazdym razie thx za zainteresowanie.

Pozdrawiam
Robert G
Technical Details
Message-ID: <c18jrt$95r$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <c11v15$ir0$1@nemesis.news.tpi.pl> <c1288a$d6c$1@news.atman.pl> <c128pt$4fo$1@nemesis.news.tpi.pl> <c15bgf$2v8i$1@news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: "Robert G" <zof...@interia.pl>
Newsgroups: alt.pl.comp.lang.csharp
Subject: Re: DataSet i DataAdapter
Date: Sat, 21 Feb 2004 22:51:39 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 19
Message-ID: <c18jrt$95r$1@atlantis.news.tpi.pl>
References: <c11v15$ir0$1@nemesis.news.tpi.pl> <c1288a$d6c$1@news.atman.pl> <c128pt$4fo$1@nemesis.news.tpi.pl> <c15bgf$2v8i$1@news.atman.pl>
NNTP-Posting-Host: yp234.internetdsl.tpnet.pl
X-Trace: atlantis.news.tpi.pl 1077400254 9403 80.55.249.234 (21 Feb 2004 21:50:54 GMT)
X-Complaints-To: use...@tpi.pl
NNTP-Posting-Date: Sat, 21 Feb 2004 21:50:54 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit