Class MySQLIndexExtensions
Extension methods for Microsoft.
Inheritance
Namespace: MySql.EntityFrameworkCore.Extensions
Assembly: MySql.EntityFrameworkCore.dll
Version: 9.3.0
Syntax
public static class MySQLIndexExtensions
Methods
FullTextParser(IIndex)
Returns a value indicating which full text parser to use.
Declaration
public static string FullTextParser(this IIndex index)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
index | The index. |
Returns
Type | Description |
---|---|
System. |
The name of the full text parser. |
GetFullTextParserConfigurationSource(IConventionIndex)
Returns the Microsoft.
Declaration
public static ConfigurationSource? GetFullTextParserConfigurationSource(this IConventionIndex property)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
property | The property. |
Returns
Type | Description |
---|---|
System. |
The Microsoft. |
GetIsFullTextConfigurationSource(IConventionIndex)
Returns the Microsoft.
Declaration
public static ConfigurationSource? GetIsFullTextConfigurationSource(this IConventionIndex property)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
property | The property. |
Returns
Type | Description |
---|---|
System. |
The Microsoft. |
GetIsSpatialConfigurationSource(IConventionIndex)
Indicates whether the index is spatial.
Declaration
public static ConfigurationSource? GetIsSpatialConfigurationSource(this IConventionIndex property)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
property | The property. |
Returns
Type | Description |
---|---|
System. |
The Microsoft. |
GetPrefixLengthConfigurationSource(IConventionIndex)
Returns the Microsoft.
Declaration
public static ConfigurationSource? GetPrefixLengthConfigurationSource(this IConventionIndex property)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
property | The property. |
Returns
Type | Description |
---|---|
System. |
The Microsoft. |
IsFullText(IIndex)
Returns a value indicating whether the index is full text.
Declaration
public static bool? IsFullText(this IIndex index)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
index | The index. |
Returns
Type | Description |
---|---|
System. |
true if the index is clustered; otherwise, false. |
IsSpatial(IIndex)
Returns a value indicating whether the index is spartial.
Declaration
public static bool? IsSpatial(this IIndex index)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
index | The index. |
Returns
Type | Description |
---|---|
System. |
true if the index is clustered; otherwise, false |
PrefixLength(IIndex)
Returns prefix lengths for the index.
Declaration
public static int[] PrefixLength(this IIndex index)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
index | The index. |
Returns
Type | Description |
---|---|
System. |
The prefix lengths.
A value of |
SetFullTextParser(IConventionIndex, String, Boolean)
Sets a value indicating which full text parser to be used.
Declaration
public static string SetFullTextParser(this IConventionIndex index, string value, bool fromDataAnnotation = false)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
index | The index. |
System. |
value | The value to set. |
System. |
fromDataAnnotation | Indicates whether the configuration was specified using a data annotation. |
Returns
Type | Description |
---|---|
System. |
SetFullTextParser(IMutableIndex, String)
Sets a value indicating which full text parser to be used.
Declaration
public static void SetFullTextParser(this IMutableIndex index, string value)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
index | The index. |
System. |
value | The value to set. |
SetIsFullText(IConventionIndex, Nullable<Boolean>, Boolean)
Sets a value indicating whether the index is full text.
Declaration
public static void SetIsFullText(this IConventionIndex index, bool? value, bool fromDataAnnotation = false)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
index | The index. |
System. |
value | The value to set. |
System. |
fromDataAnnotation | Indicates whether the configuration was specified using a data annotation. |
SetIsFullText(IMutableIndex, Nullable<Boolean>)
Sets a value indicating whether the index is full text.
Declaration
public static void SetIsFullText(this IMutableIndex index, bool? value)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
index | The index. |
System. |
value | The value to set. |
SetIsSpatial(IConventionIndex, Nullable<Boolean>, Boolean)
Sets a value indicating whether the index is spartial.
Declaration
public static void SetIsSpatial(this IConventionIndex index, bool? value, bool fromDataAnnotation = false)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
index | The index. |
System. |
value | The value to set. |
System. |
fromDataAnnotation | Indicates whether the configuration was specified using a data annotation. |
SetIsSpatial(IMutableIndex, Nullable<Boolean>)
Sets a value indicating whether the index is spartial.
Declaration
public static void SetIsSpatial(this IMutableIndex index, bool? value)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
index | The index. |
System. |
value | The value to set. |
SetPrefixLength(IConventionIndex, Int32[], Boolean)
Sets prefix lengths for the index.
Declaration
public static int[] SetPrefixLength(this IConventionIndex index, int[] values, bool fromDataAnnotation = false)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
index | The index. |
System. |
values | The prefix lengths to set.
A value of |
System. |
fromDataAnnotation | Indicates whether the configuration was specified using a data annotation. |
Returns
Type | Description |
---|---|
System. |
SetPrefixLength(IMutableIndex, Int32[])
Sets prefix lengths for the index.
Declaration
public static void SetPrefixLength(this IMutableIndex index, int[] values)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
index | The index. |
System. |
values | The prefix lengths to set.
A value of |