Data Type Mapping Firebird Domains at design time

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

Data Type Mapping Firebird Domains at design time

Post by FredS » Mon 10 Nov 2014 18:03

In my first test I used Boolean as a Domain and mapping was perfect but reading a bit it made sense to change that to fbBoolean in case future versions restrict the word 'Boolean'.

Now I see that the Domains do not show up in the drop down box of the Data mapping tool. How do we handle this?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Data Type Mapping Firebird Domains at design time

Post by ViktorV » Tue 11 Nov 2014 11:40

Unfortunately, at the moment IBDAC doesn't support this functionality.
The 'Database Type' drop-down list is generated not automatically requesting data from the server, but statically using predefined DBMS data types.
Therefore you won't be able to get your predefined domain types in this list.
You can map data with such types using 'Field Name' of the required columns.
Example:

Code: Select all

UniTable1.DataTypeMap.AddFieldNameRule(YourFieldName, ftBoolean);
More details about Data Type Mapping can be found in the UniDAC documentation: http://www.devart.com/unidac/docs/data_type_mapping.htm

FredS
Posts: 272
Joined: Mon 10 Nov 2014 17:52

Re: Data Type Mapping Firebird Domains at design time

Post by FredS » Fri 14 Nov 2014 06:39

Not the answer I wanted but for now I simply made the Domain Names match the field types of Delphi.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Data Type Mapping Firebird Domains at design time

Post by ViktorV » Fri 14 Nov 2014 10:18

Thank you for your interest to our product. Feel free to contact us if you have any further questions.

Post Reply