/// <summary> /// Configures a comment to be applied to the table /// </summary> /// <param name="entityTypeBuilder"> The builder for the entity type being configured. </param> /// <param name="comment"> The comment for the table. </param> /// <param name="fromDataAnnotation"> Indicates whether the configuration was specified using a data annotation. </param> /// <returns> /// The same builder instance if the configuration was applied, /// <see langword="null" /> otherwise. /// </returns> public static IConventionEntityTypeBuilder HasComment( [NotNull] this IConventionEntityTypeBuilder entityTypeBuilder, [CanBeNull] string comment, bool fromDataAnnotation = false) { Check.NotNull(entityTypeBuilder, nameof(entityTypeBuilder)); if (!entityTypeBuilder.CanSetComment(comment, fromDataAnnotation)) { return(null); } entityTypeBuilder.Metadata.SetComment(comment, fromDataAnnotation); return(entityTypeBuilder); }