Sdl.Web.Common/Models/ModelTypeRegistry.cs
/// <summary>
/// Gets all registered Model Types (and associated Semantic Entity names) for a given Vocabulary ID.
/// </summary>
/// <param name="vocabularyId">The vocabulary ID.</param>
/// <returns>A set of Entity Name / Model Type tuples or <c>null</c> if no types were registered for the given vocabulary.</returns>
Gets all registered Model Types (and associated Semantic Entity names) for a given Vocabulary ID.
Gets all registered Model Types ( and associated Semantic Entity names ) for a given Vocabulary ID .
public static IEnumerable<Tuple<string, Type>> GetModelTypesForVocabulary(string vocabularyId)
        {
            IList<Tuple<string, Type>> result;
            _vocabularyToModelTypesMapping.TryGetValue(vocabularyId, out result);
            return result;
        }
public static IEnumerable < Tuple < string , Type > > GetModelTypesForVocabulary ( string vocabularyId ) { IList < Tuple < string , Type > > result ; _vocabularyToModelTypesMapping . TryGetValue ( vocabularyId , out result ) ; return result ; }
Gets all registered Model Types (and associated Semantic Entity names) for a given Vocabulary ID.
Gets all registered Model Types ( and associated Semantic Entity names ) for a given Vocabulary ID .
A set of Entity Name / Model Type tuples or null
A set of Entity Name / Model Type tuples or null
vocabularyId
string
The vocabulary ID.
The vocabulary ID .