src/Shared/EntityFramework/Core/Query/InternalTrees/ExplicitDiscriminatorMap.cs
// <summary>
// Returns the type id for the given entity type, or null if non exists.
// </summary>
Returns the type id for the given entity type, or null if non exists.
Returns the type id for the given entity type or null if non exists .
internal object GetTypeId(EntityType entityType)
        {
            object result = null;
            foreach (var discriminatorTypePair in TypeMap)
            {
                if (discriminatorTypePair.Value.EdmEquals(entityType))
                {
                    result = discriminatorTypePair.Key;
                    break;
                }
            }
            return result;
        }
internal object GetTypeId ( EntityType entityType ) { object result = null ; foreach ( var discriminatorTypePair in TypeMap ) { if ( discriminatorTypePair . Value . EdmEquals ( entityType ) ) { result = discriminatorTypePair . Key ; break ; } } return result ; }
Returns the type id for the given entity type, or null if non exists.
Returns the type id for the given entity type or null if non exists .
entityType
EntityType