src/Misc/EFTools/EntityDesign/UI/ViewModels/Explorer/EntityDesignExplorerViewModelHelper.cs
// <summary>
//     Launch edit function import dialog box.
// </summary>
Launch edit function import dialog box.
Launch edit function import dialog box .
public void EditFunctionImport(FunctionImport functionImport)
        {
            Debug.Assert(functionImport != null, "The functionImport passed in to EditFunctionImport is null.");
            if (null == functionImport)
            {
                return;
            }
            var artifact = functionImport.Artifact;
            Debug.Assert(artifact != null, "There is no artifact in the passed in functionImport.");
            if (null == artifact)
            {
                return;
            }
            var cModel = artifact.ConceptualModel();
            Debug.Assert(
                cModel != null, "There is no corresponding model item for the EDM Explorer's conceptual entity model representation.");
            if (null == cModel)
            {
                return;
            }
            var sModel = artifact.StorageModel();
            Debug.Assert(sModel != null, "There is no corresponding model item for the EDM Explorer's storage entity model representation");
            if (null == sModel)
            {
                return;
            }
            var cContainer = cModel.FirstEntityContainer as ConceptualEntityContainer;
            Debug.Assert(cContainer != null, "There is no conceptual entity container in the conceptual entity model");
            if (null == cContainer)
            {
                return;
            }
            EntityDesignViewModelHelper.EditFunctionImport(
                ViewModel.EditingContext,
                functionImport,
                sModel,
                cModel,
                cContainer,
                GetFunctionImportReturnType(cModel, functionImport),
                EfiTransactionOriginator.ExplorerWindowOriginatorId);
        }
public void EditFunctionImport ( FunctionImport functionImport ) { Debug . Assert ( functionImport != null , " " ) ; if ( null == functionImport ) { return ; } var artifact = functionImport . Artifact ; Debug . Assert ( artifact != null , " " ) ; if ( null == artifact ) { return ; } var cModel = artifact . ConceptualModel ( ) ; Debug . Assert ( cModel != null , " " ) ; if ( null == cModel ) { return ; } var sModel = artifact . StorageModel ( ) ; Debug . Assert ( sModel != null , " " ) ; if ( null == sModel ) { return ; } var cContainer = cModel . FirstEntityContainer as ConceptualEntityContainer ; Debug . Assert ( cContainer != null , " " ) ; if ( null == cContainer ) { return ; } EntityDesignViewModelHelper . EditFunctionImport ( ViewModel . EditingContext , functionImport , sModel , cModel , cContainer , GetFunctionImportReturnType ( cModel , functionImport ) , EfiTransactionOriginator . ExplorerWindowOriginatorId ) ; }
Launch edit function import dialog box.
Launch edit function import dialog box .
functionImport
FunctionImport