Class MySQLKeyExtensions
Extension methods for Microsoft.
Inheritance
Namespace: MySql.EntityFrameworkCore.Extensions
Assembly: MySql.EntityFrameworkCore.dll
Version: 9.3.0
Syntax
public static class MySQLKeyExtensions
Methods
GetPrefixLengthConfigurationSource(IConventionKey)
Returns the Microsoft.
Declaration
public static ConfigurationSource? GetPrefixLengthConfigurationSource(this IConventionKey property)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
property | The property. |
Returns
Type | Description |
---|---|
System. |
The Microsoft. |
PrefixLength(IKey)
Returns prefix lengths for the key.
Declaration
public static int[] PrefixLength(this IKey key)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
key | The key. |
Returns
Type | Description |
---|---|
System. |
The prefix lengths.
A value of |
SetPrefixLength(IConventionKey, Int32[], Boolean)
Sets prefix lengths for the key.
Declaration
public static void SetPrefixLength(this IConventionKey key, int[] values, bool fromDataAnnotation = false)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
key | The key. |
System. |
values | The prefix lengths to set.
A value of |
System. |
fromDataAnnotation | Indicates whether the configuration was specified using a data annotation. |
SetPrefixLength(IMutableKey, Int32[])
Sets prefix lengths for the key.
Declaration
public static void SetPrefixLength(this IMutableKey key, int[] values)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
key | The key. |
System. |
values | The prefix lengths to set.
A value of |