src/Misc/EFTools/EntityDesignModel/ModelHelper.cs
/// <summary>
///     Given an artifact and a ModelSpace, this will return a specific EntityModel
/// </summary>
/// <returns></returns>
Given an artifact and a ModelSpace, this will return a specific EntityModel
Given an artifact and a ModelSpace this will return a specific EntityModel
internal static BaseEntityModel GetEntityModel(EFArtifact artifact, Command.ModelSpace modelSpace)
        {
            switch (modelSpace)
            {
                case Command.ModelSpace.Conceptual:
                    return artifact.ConceptualModel();
                case Command.ModelSpace.Storage:
                    return artifact.StorageModel();
            }
            Debug.Fail("Unknown data space");
            return null;
        }
internal static BaseEntityModel GetEntityModel ( EFArtifact artifact , Command . ModelSpace modelSpace ) { switch ( modelSpace ) { case Command . ModelSpace . Conceptual : return artifact . ConceptualModel ( ) ; case Command . ModelSpace . Storage : return artifact . StorageModel ( ) ; } Debug . Fail ( " " ) ; return null ; }
Given an artifact and a ModelSpace, this will return a specific EntityModel
Given an artifact and a ModelSpace this will return a specific EntityModel
None
artifact
EFArtifact
modelSpace
Command.ModelSpace