[fpc-pascal] Database Metadata proposal

silvioprog silvioprog at gmail.com
Sun Jun 1 16:19:55 CEST 2014


2014-06-01 11:18 GMT-03:00 Michael Van Canneyt <michael at freepascal.org>:
>
> On Sun, 1 Jun 2014, Daniel Gaspary wrote:
>
>> On Sun, Jun 1, 2014 at 5:27 AM, Michael Van Canneyt
>> <michael at freepascal.org> wrote:
>>
>>> Make this a TCollection/TCollectionItem. Generics are not used in the DB
>>> units, and they should not be used for consistency.
>>>
>>
>> But I was thinking that TSqlObjectIdenfier could be reused at Data
>> Dictionary Units. As a TCollectionItem could be harder to reuse, as it
>> will depend of the existence of a TCollection.
>>
>
> I don't understand what you mean with this sentence ?
>
> 1. TCollectionItem can perfectly be used without TCollection.
> 2. You create the collection implicitly with your generic list anyway;
>    the exercise is pointless without it; so why not be explicit ?
>
> But if you feel more comforable with a record and an dynamic array: feel
> free to use that. Though I don't see a problem with
> TCollectionItem/TCollection.
> It is used everywhere in the FCL.


... And more an advantage using TOwnedCollection/TCollection: you can show
its properties in object inspector.

-- 
Silvio Clécio
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140601/9eb97349/attachment.html>


More information about the fpc-pascal mailing list