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, The exception message seems to boil down to this inner exception: |
|
|
This sounds like it's a problem with the discriminator declaration rather than something specific to Dynamic Data. Could you provide us with: 1. The DiscriminatorAttribute declaration on the derived type (e.g. [Discriminator(Attribute="Kind", Value=123)]). 2. The field declaration for the discriminator field in the base type (e.g. private short _kind;). 3. If you are using the designer, the <baseToDerivedAssociation> element from the .lsmodel XML file (e.g. <baseToDerivedAssociation discriminatorName="Kind" ... >...</baseToDerivedAssociation>. Thanks! |
|
|
Hi Ivan, Here is one example: 1) [Discriminator(Attribute="EventType", Value=1)] 2) private byte _eventType; 3) I am using the designer... <baseToDerivedAssociation discriminatorName="EventType" discriminatorType="Byte" discriminatorValue="1"> Trying to add an ExternalDataEvent through DD throws the previously mentioned exception. Thanks, Chris |
|
|
Thanks. This appears to be a general LightSpeed issue rather than specific to Dynamic Data. I've committed a fix and it will be included in nightlies dated 14 Aug 2009 and above. |
|
|
Thanks Ivan, this is indeed fixed in 20090919 :-) Chris |
|