DataTypeMap
Posted: Fri 23 Nov 2012 21:49
Hi,
In the code below, what is the correct order: does the DataTypeMap need to be set before connecting to the database or does it need to be set after connecting to the database? Or does it not matter at all.
Thanks in advance.
Best regards,
Fons
LiteConnectionMain.DataTypeMap.Clear;
LiteConnectionMain.DataTypeMap.AddDBTypeRule(liteInteger, ftInteger);
LiteConnectionMain.DataTypeMap.AddDBTypeRule(liteChar, ftString);
LiteConnectionMain.DataTypeMap.AddDBTypeRule(liteMoney, ftCurrency);
LiteConnectionMain.Database:= 'Z:\Test.db3';
LiteConnectionMain.Connected:= True;
In the code below, what is the correct order: does the DataTypeMap need to be set before connecting to the database or does it need to be set after connecting to the database? Or does it not matter at all.
Thanks in advance.
Best regards,
Fons
LiteConnectionMain.DataTypeMap.Clear;
LiteConnectionMain.DataTypeMap.AddDBTypeRule(liteInteger, ftInteger);
LiteConnectionMain.DataTypeMap.AddDBTypeRule(liteChar, ftString);
LiteConnectionMain.DataTypeMap.AddDBTypeRule(liteMoney, ftCurrency);
LiteConnectionMain.Database:= 'Z:\Test.db3';
LiteConnectionMain.Connected:= True;