1
Suggestions and Requests / Problem- reverse engeneering in C# with attributes
« on: May 11, 2005, 06:34:45 am »
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.
[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.