src/Shared/EntityFramework/Core/Metadata/Edm/CacheForPrimitiveTypes.cs
// <summary>
// Add the given primitive type to the primitive type cache
// </summary>
// <param name="type"> The primitive type to add </param>
Add the given primitive type to the primitive type cache
Add the given primitive type to the primitive type cache
internal void Add(PrimitiveType type)
        {
            var primitiveTypes = EntityUtil.CheckArgumentOutOfRange(_primitiveTypeMap, (int)type.PrimitiveTypeKind, "primitiveTypeKind");
            if (primitiveTypes == null)
            {
                primitiveTypes = new List<PrimitiveType>();
                primitiveTypes.Add(type);
                _primitiveTypeMap[(int)type.PrimitiveTypeKind] = primitiveTypes;
            }
            else
            {
                primitiveTypes.Add(type);
            }
        }
internal void Add ( PrimitiveType type ) { var primitiveTypes = EntityUtil . CheckArgumentOutOfRange ( _primitiveTypeMap , ( int ) type . PrimitiveTypeKind , " " ) ; if ( primitiveTypes == null ) { primitiveTypes = new List < PrimitiveType > ( ) ; primitiveTypes . Add ( type ) ; _primitiveTypeMap [ ( int ) type . PrimitiveTypeKind ] = primitiveTypes ; } else { primitiveTypes . Add ( type ) ; } }
Add the given primitive type to the primitive type cache
Add the given primitive type to the primitive type cache
// Get to the list // If there isn't a list for the given model type, create one and add it
type
PrimitiveType
The primitive type to add
The primitive type to add