/// <summary> /// /// </summary> /// <param name="currentRow"></param> /// <param name="rowIndex"></param> public override void VerifyRow(DataRow currentRow, int rowIndex) { var fileAttachment = FileAttachmentsBusinessObject.NewInstance(); var attachmentId = (Guid)currentRow["FK_FileAttachments"]; var linkedObjectId = (Guid)currentRow["FK_LinkedToObject"]; if (fileAttachment.IsObjectLinkedToAttachment(attachmentId, linkedObjectId)) { LogBusinessRuleViolation(currentRow, rowIndex, "DuplicateAttachment", "This file is already attached to this object."); } }
/// <summary> /// Override the GetBusinessObject method /// </summary> public override IBusinessObject GetBusinessObject() => FileAttachmentsBusinessObject.NewInstance();