src/Misc/EFTools/EntityDesignPackage/CustomCode/MicrosoftDataEntityDesignEditorFactory.cs
/// <summary>
///     This method returns the physical view identifier.
///     If Escher logical view is passed in the parameter, the viewContext should contain diagram id information.
///     We set the physical view identifier to be equal to diagram id because we want diagram to have its own docview.
/// </summary>
/// <param name="logicalView"></param>
/// <param name="viewContext"></param>
/// <returns></returns>
This method returns the physical view identifier.
If Escher logical view is passed in the parameter, the viewContext should contain diagram id information.
We set the physical view identifier to be equal to diagram id because we want diagram to have its own docview.
This method returns the physical view identifier . If Escher logical view is passed in the parameter the viewContext should contain diagram id information . We set the physical view identifier to be equal to diagram id because we want diagram to have its own docview .
protected override string MapLogicalView(Guid logicalView, object viewContext)
        {
            if (logicalView == PackageConstants.guidLogicalView
                && viewContext != null)
            {
                Debug.Assert(
                    viewContext is String && !String.IsNullOrEmpty(viewContext.ToString()),
                    "EditorFactory expects diagram id information in viewContext parameter.");
                return viewContext.ToString();
            }
            return base.MapLogicalView(logicalView, viewContext);
        }
protected override string MapLogicalView ( Guid logicalView , object viewContext ) { if ( logicalView == PackageConstants . guidLogicalView && viewContext != null ) { Debug . Assert ( viewContext is String && ! String . IsNullOrEmpty ( viewContext . ToString ( ) ) , " " ) ; return viewContext . ToString ( ) ; } return base . MapLogicalView ( logicalView , viewContext ) ; }
This method returns the physical view identifier.
This method returns the physical view identifier .
None
logicalView
Guid
None
viewContext
object
None