private static UpdateFormulaResponse UpdateForumlaDefinition(dynamic att, AttributeMetadata from, AttributeMetadata to)
 {
     var response = new UpdateFormulaResponse
     {
         CurrentForumla = att.FormulaDefinition,
         NewFormula = UpdateFormula(att.FormulaDefinition, from.LogicalName, to.LogicalName)
     };
     att.FormulaDefinition = response.NewFormula;
     return response;
 }
Пример #2
0
        private static UpdateFormulaResponse UpdateForumlaDefinition(dynamic att, AttributeMetadata from, AttributeMetadata to)
        {
            var response = new UpdateFormulaResponse
            {
                CurrentForumla = att.FormulaDefinition,
                NewFormula     = UpdateFormula(att.FormulaDefinition, from.LogicalName, to.LogicalName)
            };

            att.FormulaDefinition = response.NewFormula;
            return(response);
        }