/// <summary> /// Configures a comment to be applied to the column /// </summary> /// <param name="propertyBuilder"> The builder for the property being configured. </param> /// <param name="comment"> The comment for the column. </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 IConventionPropertyBuilder HasComment( [NotNull] this IConventionPropertyBuilder propertyBuilder, [CanBeNull] string comment, bool fromDataAnnotation = false) { if (!propertyBuilder.CanSetComment(comment, fromDataAnnotation)) { return(null); } propertyBuilder.Metadata.SetComment(comment, fromDataAnnotation); return(propertyBuilder); }