Beispiel #1
0
 void mf_NameChanged(object sender, NameChangeArgs e)
 {
     if (_modelFunctionImports.ContainsKey(e.OldName))
     {
         _modelFunctionImports.Remove(e.OldName);
         _modelFunctionImports.Add(e.NewName, (ModelFunction)sender);
     }
 }
Beispiel #2
0
 void navprop_NameChanged(object sender, NameChangeArgs e)
 {
     if (_navigationProperties.ContainsKey(e.OldName))
     {
         _navigationProperties.Remove(e.OldName);
         _navigationProperties.Add(e.NewName, (NavigationProperty)sender);
     }
 }
Beispiel #3
0
 void es_NameChanged(object sender, NameChangeArgs e)
 {
     if (_modelEntitySets.ContainsKey(e.OldName))
     {
         _modelEntitySets.Remove(e.OldName);
         _modelEntitySets.Add(e.NewName, (ModelEntitySet)sender);
     }
 }
Beispiel #4
0
 void prop_NameChanged(object sender, NameChangeArgs e)
 {
     if (_memberProperties.ContainsKey(e.OldName))
     {
         _memberProperties.Remove(e.OldName);
         _memberProperties.Add(e.NewName, (ModelMemberProperty)sender);
     }
 }
Beispiel #5
0
 void asm_NameChanged(object sender, NameChangeArgs e)
 {
     if (_associationSetMappings.ContainsKey(e.OldName))
     {
         _associationSetMappings.Remove(e.OldName);
         _associationSetMappings.Add(e.NewName, (AssociationSetMapping)sender);
     }
 }
Beispiel #6
0
 void prop_NameChanged(object sender, NameChangeArgs e)
 {
     if (_parameters.ContainsKey(e.OldName))
     {
         _parameters.Remove(e.OldName);
         _parameters.Add(e.NewName, (StoreFunctionParameter)sender);
     }
 }
 void aset_NameChanged(object sender, NameChangeArgs e)
 {
     if (_storeAssociationSets.ContainsKey(e.OldName))
     {
         _storeAssociationSets.Remove(e.OldName);
         _storeAssociationSets.Add(e.NewName, (StoreAssociationSet)sender);
     }
 }
 void et_NameChanged(object sender, NameChangeArgs e)
 {
     if (_storeEntityTypes.ContainsKey(e.OldName))
     {
         _storeEntityTypes.Remove(e.OldName);
         _storeEntityTypes.Add(e.NewName, (StoreEntityType)sender);
     }
 }
 void sfn_NameChanged(object sender, NameChangeArgs e)
 {
     if (_storeFunctions.ContainsKey(e.OldName))
     {
         _storeFunctions.Remove(e.OldName);
         _storeFunctions.Add(e.NewName, (StoreFunction)sender);
     }
 }
Beispiel #10
0
 void ModelEntitySet_NameChanged(object sender, NameChangeArgs e)
 {
     if (_entitySetMappings.ContainsKey(e.OldName))
     {
         EntitySetMapping esm = _entitySetMappings[e.OldName];
         _entitySetMappings.Remove(e.OldName);
         _entitySetMappings.Add(e.NewName, esm);
     }
 }
Beispiel #11
0
 void ModelFunction_NameChanged(object sender, NameChangeArgs e)
 {
     if (_functionImportMappings.ContainsKey(e.OldName))
     {
         FunctionImportMapping fim = _functionImportMappings[e.OldName];
         _functionImportMappings.Remove(e.OldName);
         _functionImportMappings.Add(e.NewName, fim);
     }
 }
Beispiel #12
0
        void ct_NameChanged(object sender, NameChangeArgs e)
        {
            if (_modelComplexTypes.ContainsKey(e.OldName))
            {
                _modelComplexTypes.Remove(e.OldName);
                _modelComplexTypes.Add(e.NewName, (ModelComplexType)sender);
            }

            //update all entity type member properties referencing the complex type...
            foreach (ModelMemberProperty mmp in EntityTypes.SelectMany(et => et.MemberProperties.Where(mp => mp.TypeName == this.Namespace + "." + e.OldName)))
            {
                mmp.TypeName = e.NewName;
            }

            //update all complex type member properties referencing the complex type...
            foreach (ModelMemberProperty mmp in ComplexTypes.SelectMany(ct => ct.MemberProperties.Where(mp => mp.TypeName == this.Namespace + "." + e.OldName)))
            {
                mmp.TypeName = e.NewName;
            }
        }
 void ModelFunction_NameChanged(object sender, NameChangeArgs e)
 {
     this.Name = e.NewName;
 }
 void es_NameChanged(object sender, NameChangeArgs e)
 {
     if (_modelEntitySets.ContainsKey(e.OldName))
     {
         _modelEntitySets.Remove(e.OldName);
         _modelEntitySets.Add(e.NewName, (ModelEntitySet)sender);
     }
 }
 void mf_NameChanged(object sender, NameChangeArgs e)
 {
     if (_modelFunctionImports.ContainsKey(e.OldName))
     {
         _modelFunctionImports.Remove(e.OldName);
         _modelFunctionImports.Add(e.NewName, (ModelFunction)sender);
     }
 }
 void ModelFunction_NameChanged(object sender, NameChangeArgs e)
 {
     if (_functionImportMappings.ContainsKey(e.OldName))
     {
         FunctionImportMapping fim = _functionImportMappings[e.OldName];
         _functionImportMappings.Remove(e.OldName);
         _functionImportMappings.Add(e.NewName, fim);
     }
 }
 void ModelEntitySet_NameChanged(object sender, NameChangeArgs e)
 {
     if (_entitySetMappings.ContainsKey(e.OldName))
     {
         EntitySetMapping esm = _entitySetMappings[e.OldName];
         _entitySetMappings.Remove(e.OldName);
         _entitySetMappings.Add(e.NewName, esm);
     }
 }
 void asm_NameChanged(object sender, NameChangeArgs e)
 {
     if (_associationSetMappings.ContainsKey(e.OldName))
     {
         _associationSetMappings.Remove(e.OldName);
         _associationSetMappings.Add(e.NewName, (AssociationSetMapping)sender);
     }
 }
 void aset_NameChanged(object sender, NameChangeArgs e)
 {
     if (_storeAssociationSets.ContainsKey(e.OldName))
     {
         _storeAssociationSets.Remove(e.OldName);
         _storeAssociationSets.Add(e.NewName, (StoreAssociationSet)sender);
     }
 }
 void prop_NameChanged(object sender, NameChangeArgs e)
 {
     if (_memberProperties.ContainsKey(e.OldName))
     {
         _memberProperties.Remove(e.OldName);
         _memberProperties.Add(e.NewName, (StoreMemberProperty)sender);
     }
 }
        void ct_NameChanged(object sender, NameChangeArgs e)
        {
            if (_modelComplexTypes.ContainsKey(e.OldName))
            {
                _modelComplexTypes.Remove(e.OldName);
                _modelComplexTypes.Add(e.NewName, (ModelComplexType)sender);
            }

            //update all entity type member properties referencing the complex type...
            foreach (ModelMemberProperty mmp in EntityTypes.SelectMany(et => et.MemberProperties.Where(mp => mp.TypeName == this.Namespace + "." + e.OldName)))
            {
                mmp.TypeName = e.NewName;
            }

            //update all complex type member properties referencing the complex type...
            foreach (ModelMemberProperty mmp in ComplexTypes.SelectMany(ct => ct.MemberProperties.Where(mp => mp.TypeName == this.Namespace + "." + e.OldName)))
            {
                mmp.TypeName = e.NewName;
            }
        }
 void et_NameChanged(object sender, NameChangeArgs e)
 {
     if (_storeEntityTypes.ContainsKey(e.OldName))
     {
         _storeEntityTypes.Remove(e.OldName);
         _storeEntityTypes.Add(e.NewName, (StoreEntityType)sender);
     }
 }
 void sfn_NameChanged(object sender, NameChangeArgs e)
 {
     if (_storeFunctions.ContainsKey(e.OldName))
     {
         _storeFunctions.Remove(e.OldName);
         _storeFunctions.Add(e.NewName, (StoreFunction)sender);
     }
 }
 void prop_NameChanged(object sender, NameChangeArgs e)
 {
     if (_parameters.ContainsKey(e.OldName))
     {
         _parameters.Remove(e.OldName);
         _parameters.Add(e.NewName, (StoreFunctionParameter)sender);
     }
 }
 void navprop_NameChanged(object sender, NameChangeArgs e)
 {
     if (_navigationProperties.ContainsKey(e.OldName))
     {
         _navigationProperties.Remove(e.OldName);
         _navigationProperties.Add(e.NewName, (NavigationProperty)sender);
     }
 }