Beispiel #1
0
        public ImportRowInfo GetRowInfo()
        {
            if (_rowInfo == null)
            {
                _rowInfo = new ImportRowInfo(this.Position, this.EntityDisplayName);
            }

            return(_rowInfo);
        }
Beispiel #2
0
        public ImportMessage AddMessage(string message, ImportMessageType severity, ImportRowInfo affectedRow = null, string affectedField = null, string fullMessage = null)
        {
            var msg = new ImportMessage(message, severity);

            msg.AffectedItem  = affectedRow;
            msg.AffectedField = affectedField;
            msg.FullMessage   = fullMessage;

            this.Messages.Add(msg);
            return(msg);
        }
Beispiel #3
0
 public ImportMessage AddError(string message, ImportRowInfo affectedRow = null, string affectedField = null)
 {
     return(this.AddMessage(message, ImportMessageType.Error, affectedRow, affectedField));
 }