src/EntityFramework/Migrations/Design/CSharpMigrationCodeGenerator.cs
/// <summary>
///     Gets the type name to use for a column of the given data type.
/// </summary>
/// <param name="primitiveTypeKind"> The data type to translate. </param>
/// <returns> The type name to use in the generated migration. </returns>
Gets the type name to use for a column of the given data type.
Gets the type name to use for a column of the given data type .
protected virtual string TranslateColumnType(PrimitiveTypeKind primitiveTypeKind)
        {
            switch (primitiveTypeKind)
            {
                case PrimitiveTypeKind.Int16:
                    return "Short";
                case PrimitiveTypeKind.Int32:
                    return "Int";
                case PrimitiveTypeKind.Int64:
                    return "Long";
                default:
                    return Enum.GetName(typeof(PrimitiveTypeKind), primitiveTypeKind);
            }
        }
protected virtual string TranslateColumnType ( PrimitiveTypeKind primitiveTypeKind ) { switch ( primitiveTypeKind ) { case PrimitiveTypeKind . Int16 : return " " ; case PrimitiveTypeKind . Int32 : return " " ; case PrimitiveTypeKind . Int64 : return " " ; default : return Enum . GetName ( typeof ( PrimitiveTypeKind ) , primitiveTypeKind ) ; } }
Gets the type name to use for a column of the given data type.
Gets the type name to use for a column of the given data type .
The type name to use in the generated migration.
The type name to use in the generated migration .
primitiveTypeKind
PrimitiveTypeKind
The data type to translate.
The data type to translate .