Code Gen Bug:In the MDG 3.5 if you change the UML class model and then generate the code, it is not syncing with the current code in place. It is instead re-writing the entire class including the namespace. This is in C#.
I have pasted a sample file showing the replicated code. This did not happen with VS 2005 and previous versions of MDG.
Create a class, add a method or two, add a UML diagram, sync a SPARX/MDG Link Package with a Visual Studio Project, add a new method to the UML class, and do either generate code, or forward engineering using the package sync tool.
Please see screenshot below for SPARX Product version details.
Submission Form:I tried to submit this with your form, but it would not allow submission. See Screen Shot

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using DevelopmentCase.DAL;
namespace DevelopmentCase
{
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
}
private void button1_Click(object sender, RoutedEventArgs e)
{
Class1 C1 = new Class1();
C1.test();
}
public string TestText1(string InputText)
{
throw new System.NotImplementedException();
}
}
namespace DevelopmentCase {
/// <summary>
/// Interaction logic for Window1.xaml
/// </summary>
public partial class Window1 : Window {
~Window1(){
}
public override void Dispose(){
}
public Window1(){
}
///
/// <param name="sender"></param>
/// <param name="e"></param>
private void button1_Click(object sender, RoutedEventArgs e){
}
///
/// <param name="InputText"></param>
public string TestText12(string InputText){
return "";
}
///
/// <param name="InputText"></param>
public string TestText123(string InputText){
return "";
}
}//end Window1
}//end namespace DevelopmentCase
}