Пример #1
0
        internal void UpdateFieldTypesIfAny(Dictionary<string, Type> dict)
        {
            if (dict == null || RecordFieldConfigurationsDict == null)
                return;

            foreach (var key in dict.Keys)
            {
                if (RecordFieldConfigurationsDict.ContainsKey(key) && dict[key] != null)
                    RecordFieldConfigurationsDict[key].FieldType = dict[key];
            }
        }
Пример #2
0
        internal void UpdateFieldTypesIfAny(IDictionary <string, Type> dict)
        {
            if (dict == null || RecordFieldConfigurationsDict == null)
            {
                return;
            }

            foreach (var key in dict.Keys)
            {
                if (RecordFieldConfigurationsDict.ContainsKey(key) && dict[key] != null)
                {
                    RecordFieldConfigurationsDict[key].FieldType = dict[key];
                }
            }
            AreAllFieldTypesNull = RecordFieldConfigurationsDict.All(kvp => kvp.Value.FieldType == null);
        }