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, We ran into a bug with a user defined type. The type we defined was an enumerator (sample):
public enum TestType : byte { bla1, bla2 }
We then went to the LS model and added the type: CLR Type Name: TestType Data Type: Byte Is Standard Data Type: True Is Value Type: True Name: TestType
We defined an entity with this TestType as a property. This all went perfect, no errors, etc. Now the issue came with inserting a record using this entity. LightSpeed (nightly build from the 16th) threw a "Cannot cast number from infinity" (or similar) exception. After some trial and error we found out that removing the ": byte" specifier from the enum will solve this cast exception. While this solution works, I would classify it as a bug. Regards, Jerremy |
|
|
Hmm, looks like we only support default enums (based on Int32) at the moment. I'll log a bug for this: thanks for letting us know about it! |
|