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
|
Hi, Is it possible to map a user defined type to a varbinary column? Do I have to implement the IConvertible interface or is a serializable class sufficient? |
|
|
That isn't currently possible, but it's an interesting idea and I've logged a feature request for it. In the meantime, you can work around this by creating a wrapper property in the partial class: partial class Person { In fact because LightSpeed operates on fields not properties, you can even get rid of the automatic PhotoBytes wrapper property (set Generation = FieldOnly in the designer) and write your own more friendly wrapper property. In this case you must use the Entity.Set method to set the field: partial class Person { |
|