This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hello. It is possible for LightSpeed users to self-implement something like field converters for non standard database data type? For example, PostgreSQL has ip address data type, is it possible to create custom class and field converter for it? Thanks. |
|
|
Yes, you can specify these as a user-defined type in LightSpeed (see: http://www.mindscapehq.com/documentation/lightspeed/Working-with-Models-in-the-Visual-Designer/enums-and-other-user-defined-types) and then implement a custom field converter if required to convert to/from the .NET type and the DB type (see: http://www.mindscapehq.com/documentation/lightspeed/Working-with-Legacy-Databases/Mapping-Database-Types-to-Domain-Types).
|
|
|
Good day. I have added custom database data type (CITEXT - case insensitive variant of TEXT in PostgreSQL), but model designer creates columns with incorrect default value. The query is:
Query should be the same as for text columns:
Or
Is there any way to specify correct default value? Thanks. |
|
|
No Im afraid we don't have an option for something like this.
|
|