This question is locked. New answers and comments are not allowed.
Hi,
In our framework we would like to use our custom types, but couldn't find any documentation on the web.
Let me explain the usecase:
For example I have a table Invoice with columns below:
- Id (Guid)
- Date (DateTime)
- Details (collection property)
- Total (string)
When the class is generated I would like to change the CLR type of Total property from string to MyCustomType. MyCustomType overrides the ToString method and returns the appropriate value.
How can I achieve this? Is my solution correct? Please correct me if I am wrong.
Reason I want to use my custom type is I want to do some logic in it.
Thanks,