示例#1
0
        public static ProductDocumentAttachment CreateProductDocumentAttachment(string productNumber,
                                                                                string documentAttachmentTypeCode,
                                                                                string attachmentDescription,
                                                                                global::System.DateTimeOffset attachedDateTime,
                                                                                global::Microsoft.Dynamics.DataEntities.ProductV2 productV2,
                                                                                global::Microsoft.Dynamics.DataEntities.DocumentType documentAttachmentType)
        {
            ProductDocumentAttachment productDocumentAttachment = new ProductDocumentAttachment();

            productDocumentAttachment.ProductNumber = productNumber;
            productDocumentAttachment.DocumentAttachmentTypeCode = documentAttachmentTypeCode;
            productDocumentAttachment.AttachmentDescription      = attachmentDescription;
            productDocumentAttachment.AttachedDateTime           = attachedDateTime;
            if ((productV2 == null))
            {
                throw new global::System.ArgumentNullException("productV2");
            }
            productDocumentAttachment.ProductV2 = productV2;
            if ((documentAttachmentType == null))
            {
                throw new global::System.ArgumentNullException("documentAttachmentType");
            }
            productDocumentAttachment.DocumentAttachmentType = documentAttachmentType;
            return(productDocumentAttachment);
        }
示例#2
0
 partial void OnDocumentAttachmentTypeChanging(global::Microsoft.Dynamics.DataEntities.DocumentType value);