src/Misc/EFTools/EntityDesignModel/ModelHelper.cs
/// <summary>
///     Returns true if the type can support Identity for StoreGeneratedPattern
/// </summary>
Returns true if the type can support Identity for StoreGeneratedPattern
Returns true if the type can support Identity for StoreGeneratedPattern
internal static bool CanTypeSupportIdentity(string conceptualTypeName)
        {
            var type = GetPrimitiveTypeFromString(conceptualTypeName);
            return type != null
                   && (type.PrimitiveTypeKind == PrimitiveTypeKind.Int16 ||
                       type.PrimitiveTypeKind == PrimitiveTypeKind.Int32 ||
                       type.PrimitiveTypeKind == PrimitiveTypeKind.Int64 ||
                       type.PrimitiveTypeKind == PrimitiveTypeKind.Decimal ||
                       type.PrimitiveTypeKind == PrimitiveTypeKind.Byte);
        }
internal static bool CanTypeSupportIdentity ( string conceptualTypeName ) { var type = GetPrimitiveTypeFromString ( conceptualTypeName ) ; return type != null && ( type . PrimitiveTypeKind == PrimitiveTypeKind . Int16 || type . PrimitiveTypeKind == PrimitiveTypeKind . Int32 || type . PrimitiveTypeKind == PrimitiveTypeKind . Int64 || type . PrimitiveTypeKind == PrimitiveTypeKind . Decimal || type . PrimitiveTypeKind == PrimitiveTypeKind . Byte ) ; }
Returns true if the type can support Identity for StoreGeneratedPattern
Returns true if the type can support Identity for StoreGeneratedPattern
conceptualTypeName
string