partial void DeleteDictionaryValue(DictionaryValue instance) { lock (_enumsLocker) { _dictionaryValuesCache.Value[instance.DictionaryKindId].Remove(instance.Name); if (_dictionaryValuesCache.Value[instance.DictionaryKindId].Count == 0) _dictionaryValuesCache.Value.Remove(instance.DictionaryKindId); } ExecuteDynamicDelete(instance); }
partial void DeleteDictionaryValue(DictionaryValue instance);
partial void UpdateDictionaryValue(DictionaryValue instance);
partial void InsertDictionaryValue(DictionaryValue instance);
private void detach_DictionaryValue(DictionaryValue entity) { this.SendPropertyChanging(); entity.DicDictionaryKind = null; }
partial void InsertDictionaryValue(DictionaryValue instance) { lock (_enumsLocker) { if (!_dictionaryValuesCache.Value.ContainsKey(instance.DictionaryKindId)) _dictionaryValuesCache.Value.Add(instance.DictionaryKindId, new Dictionary<string, string>()); _dictionaryValuesCache.Value[instance.DictionaryKindId].Add(instance.Name, instance.Value); } ExecuteDynamicInsert(instance); }