src/Misc/EFTools/EntityDesignEntityDesigner/CustomCode/CustomSerializer/EntityModelToDslModelTranslatorStrategy.cs
/// <summary>
///     Translate model EntityType into view EntityType (creates a view EntityType if not yet created)
/// </summary>
/// <param name="viewModel"></param>
/// <param name="entityType"></param>
/// <param name="processChildren"></param>
/// <returns></returns>
Translate model EntityType into view EntityType (creates a view EntityType if not yet created)
Translate model EntityType into view EntityType ( creates a view EntityType if not yet created )
private static ViewModelEntityType TranslateEntityType(EntityDesignerViewModel viewModel, ConceptualEntityType entityType)
        {
            var viewET =
                ModelToDesignerModelXRef.GetNewOrExisting(viewModel.EditingContext, entityType, viewModel.Partition) as ViewModelEntityType;
            viewET.Name = entityType.LocalName.Value;
            return viewET;
        }
private static ViewModelEntityType TranslateEntityType ( EntityDesignerViewModel viewModel , ConceptualEntityType entityType ) { var viewET = ModelToDesignerModelXRef . GetNewOrExisting ( viewModel . EditingContext , entityType , viewModel . Partition ) as ViewModelEntityType ; viewET . Name = entityType . LocalName . Value ; return viewET ; }
Translate model EntityType into view EntityType (creates a view EntityType if not yet created)
Translate model EntityType into view EntityType ( creates a view EntityType if not yet created )
None
viewModel
EntityDesignerViewModel
None
entityType
ConceptualEntityType
None
processChildren
None