Exemplo n.º 1
0
 /// <summary>
 ///     Gets the <see cref="ConfigurationSource" /> for whether the key is clustered.
 /// </summary>
 /// <param name="key"> The key. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for whether the key is clustered. </returns>
 public static ConfigurationSource?GetIsClusteredConfigurationSource([NotNull] this IConventionKey key)
 => key.FindAnnotation(SqlServerAnnotationNames.Clustered)?.GetConfigurationSource();
Exemplo n.º 2
0
 /// <summary>
 ///     Gets the <see cref="ConfigurationSource" /> for the constraint name.
 /// </summary>
 /// <param name="key"> The key. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for the constraint name. </returns>
 public static ConfigurationSource?GetNameConfigurationSource([NotNull] this IConventionKey key)
 => key.FindAnnotation(RelationalAnnotationNames.Name)?.GetConfigurationSource();
 /// <summary>
 ///     Returns the <see cref="ConfigurationSource" /> for prefix lengths of the key.
 /// </summary>
 /// <param name="property"> The property. </param>
 /// <returns> The <see cref="ConfigurationSource" /> for prefix lengths of the key. </returns>
 public static ConfigurationSource?GetPrefixLengthConfigurationSource([NotNull] this IConventionKey property)
 => property.FindAnnotation(MySqlAnnotationNames.IndexPrefixLength)?.GetConfigurationSource();