src/Misc/EFTools/EntityDesignEntityDesigner/CustomCode/Rules/EntityDesignerViewModel_AddRule.cs
/// <summary>
///     Do the following when a new ConceptualModel is created:
///     - Initialize Namespace and Alias
/// </summary>
/// <param name="e"></param>
Do the following when a new ConceptualModel is created:
Initialize Namespace and Alias
Do the following when a new ConceptualModel is created : Initialize Namespace and Alias
public override void ElementAdded(ElementAddedEventArgs e)
        {
            base.ElementAdded(e);
            var model = e.ModelElement as EntityDesignerViewModel;
            Debug.Assert(model != null);
            if (model != null)
            {
                if (ModelUtils.IsSerializing(e.ModelElement.Store) == false)
                {
                    if (String.IsNullOrEmpty(model.Namespace))
                    {
                        model.Namespace = "Model";
                    }
                }
            }
        }
public override void ElementAdded ( ElementAddedEventArgs e ) { base . ElementAdded ( e ) ; var model = e . ModelElement as EntityDesignerViewModel ; Debug . Assert ( model != null ) ; if ( model != null ) { if ( ModelUtils . IsSerializing ( e . ModelElement . Store ) == false ) { if ( String . IsNullOrEmpty ( model . Namespace ) ) { model . Namespace = " " ; } } } }
Do the following when a new ConceptualModel is created:
 Initialize Namespace and Alias
Do the following when a new ConceptualModel is created : Initialize Namespace and Alias
e
ElementAddedEventArgs
None