public override DBMessage createDBMessage() { DBMessage retVal = new Tests.DBElements.DBMessage(); _defaultValueSetter.SetDefaultValue(retVal); return(retVal); }
/// <summary> /// Merges two DBmessages /// </summary> /// <param name="other"></param> public void Merge(DBMessage other) { if (getMessageOrder() == other.getMessageOrder() && getMessageType() == other.getMessageType()) { setGuid(other.getGuid()); int cnt = 0; foreach (DBField field in Fields) { if (cnt < other.Fields.Count) { field.Merge((DBField)other.Fields[cnt]); } cnt = cnt + 1; } } }
public override DBMessage createDBMessage() { DBMessage retVal = new Tests.DBElements.DBMessage(); _defaultValueSetter.SetDefaultValue(retVal); return retVal; }
/// <summary> /// Adds a new message /// </summary> /// <param name="message"></param> public void AddMessage(DBElements.DBMessage message) { allMessages().Add(message); }