示例#1
0
 private void PopulateEntityFromDataRow(Entity entity, DataRow row, CancellationToken cancel, IProgress <ExecutionProgress> progress)
 {
     foreach (FieldValue value in Owner)
     {
         Dynamics365FieldOperation.PopulateEntityFromFieldValue(entity, value, row, cancel, progress);
     }
 }
示例#2
0
        public override IOperation Clone(bool addSuffix)
        {
            Dynamics365FieldOperation clone = (Dynamics365FieldOperation)base.Clone(addSuffix);

            clone.Values = new BindingList <FieldValue>();
            Values.ToList().ForEach(value => clone.Values.Add(value.Clone()));
            return(clone);
        }
        private void PopulateEntityFromDataRow(Entity entity, DataRow row, CancellationToken cancel, IProgress <ExecutionProgress> progress)
        {
            foreach (FieldValue value in Values)
            {
                string logicalName = ((Dynamics365Field)value.DestinationField).LogicalName;

                if (logicalName != STATECODE_NAME && logicalName != STATUSCODE_NAME)
                {
                    Dynamics365FieldOperation.PopulateEntityFromFieldValue(entity, value, row, cancel, progress);
                }
            }
        }