Beispiel #1
0
 public void executeOpertionsCrm(IEnumerable <CrmOperation> operation, CrmOperationHelper crmOpHelper)
 {
     //foreach (var item in operation)
     //{ public void executeOpertionsCrm(IEnumerable<CrmOperation> operation, CrmOperationHelper crmOpHelper)
     {
         //foreach (var item in operation)
         //{
         //    if (item.opertionTarget == CrmOperation.CrmOperationTarget.attribute)
         //    {
         //        CrmAttributeOperation crmAttrOperation = (CrmAttributeOperation)item;
         //        if (item.operationType == CrmOperation.CrmOperationType.update)
         //        {
         //            crmOpHelper.UpdateEnityAttribute(crmAttrOperation.or.EntityLogicalName, crmAttrOperation.attribute);
         //        }
         //        else if (item.operationType == CrmOperation.CrmOperationType.create)
         //        {
         //            crmOpHelper.CreateNewEnityAttribute(crmAttrOperation.attribute.EntityLogicalName, crmAttrOperation.attribute);
         //        }
         //    }
         //    else if (item.opertionTarget == CrmOperation.CrmOperationTarget.entity)
         //    {
         //        //TO be implemented
         //    }
         //}
     }
     //    if (item.opertionTarget == CrmOperation.CrmOperationTarget.attribute)
     //    {
     //        CrmAttributeOperation crmAttrOperation = (CrmAttributeOperation)item;
     //        if (item.operationType == CrmOperation.CrmOperationType.update)
     //        {
     //            crmOpHelper.UpdateEnityAttribute(crmAttrOperation.or.EntityLogicalName, crmAttrOperation.attribute);
     //        }
     //        else if (item.operationType == CrmOperation.CrmOperationType.create)
     //        {
     //            crmOpHelper.CreateNewEnityAttribute(crmAttrOperation.attribute.EntityLogicalName, crmAttrOperation.attribute);
     //        }
     //    }
     //    else if (item.opertionTarget == CrmOperation.CrmOperationTarget.entity)
     //    {
     //        //TO be implemented
     //    }
     //}
 }
 private GlobalOperations()
 {
     CRMOpHelper = new CrmOperationHelper();
 }