Search Results for

    Show / Hide Table of Contents

    Class MySQLKeyBuilderExtensions

    MySQL specific extension methods for Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder.

    Inheritance
    System.Object
    MySQLKeyBuilderExtensions
    Namespace: MySql.EntityFrameworkCore.Extensions
    Assembly: MySql.EntityFrameworkCore.dll
    Version: 9.3.0
    Syntax
    public static class MySQLKeyBuilderExtensions

    Methods

    HasPrefixLength(KeyBuilder, Int32[])

    Sets prefix lengths for the key.

    Declaration
    public static KeyBuilder HasPrefixLength(this KeyBuilder keyBuilder, params int[] prefixLengths)
    Parameters
    Type Name Description
    Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder keyBuilder

    The key builder.

    System.Int32[] prefixLengths

    The prefix lengths to set in the order of the key columns where specified. A value of 0 indicates, that the full length should be used for that column.

    Returns
    Type Description
    Microsoft.EntityFrameworkCore.Metadata.Builders.KeyBuilder

    The key builder.

    In This Article
    • Methods
      • HasPrefixLength(KeyBuilder, Int32[])
    Back to top Copyright © 2021, 2025, Oracle and/or its affiliates.