Book a Demo

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Drc

Pages: [1]
1
I have this class declaration:
[Serializable]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(TranslationSearchDefinition))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(FeatureSearchDefinition))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(ProjectSearchDefinition))]
[System.Xml.Serialization.XmlIncludeAttribute(typeof(DisplayTextSearchDefinition))]
public abstract class SearchDefinition: ICloneable
{
... something
}

When I try to synchronize this class from code to EA (in database), I get error message "String or binary data would be truncated". If I remove these attributes, synchronization passes.

2
You are right, I have version 4.50 build 744, after downloading the latest version synchronization seems to be ok. Thanks.

3
Hello,
I have problem with synchronization c# code to EA model. When I define field in class with some initial value, something like this:
[NonSerialized]
private static ILog Log = LogManager.GetLogger(typeof(XY));

After reverse engeneering to EA model, initial value is set only to: LogManager.GetLogger

so when code generation is run again, result in code is:
private static ILog Log = LogManager.GetLogger
what of course wrong for compiler.

But for initial values like Hashtable, ArrayList etc. everything is correct.

Pages: [1]