🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.database.dotnet
Article #663

Re: Accessing DataColumns in a strongly typed datasets

#663
From: Pravin Taneja
Date: Wed, 06 Oct 2004 15:18
23 lines
1752 bytes
> here 3rd section declaring properties to access DataColumns should be
> public. Without this we are left to either use 
> DataTable.Columns['FieldName'] syntax or to edit the auto-generated file 
> every time!
>

Sorry, if final private section is changed to public then Delphi changes it 
back to private when recompiled.

So Delphi does not allow using DataColumns directly in a strongly typed 
datasets (STDs), defeating one of the advantage of using STDs.

I can make DataRelations work only by adding it manually in the file where 
STD is used-

  CustomerOrder1.Relations.Add('CusOrd',
    CustomerOrder1.Customers.Columns['CustomerID'],
    CustomerOrder1.Orders.Columns['CustomerID']);

Regards,

Pravin 
Technical Details
Message-ID: <41640d0b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4164087d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1effe6,b9b82e63a6a89559
X-Google-Attributes: gid1effe6,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Pravin Taneja" <pravin@intellisoftwares.com.sg>
From: "Pravin Taneja" <pravin@intellisoftwares.com.sg>
Newsgroups: borland.public.delphi.database.dotnet
References: <4164087d@newsgroups.borland.com>
Subject: Re: Accessing DataColumns in a strongly typed datasets
Date: Wed, 6 Oct 2004 23:18:59 +0800
Lines: 25
Organization: Intelli Softwares
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 218.186.22.123
Message-ID: <41640d0b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1097075979 218.186.22.123 (6 Oct 2004 08:19:39 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail