/// <summary> /// Sets a PostgreSQL storage parameter on the table created for this entity. /// </summary> /// <remarks> /// See https://www.postgresql.org/docs/current/static/sql-createtable.html#SQL-CREATETABLE-STORAGE-PARAMETERS /// </remarks> /// <param name="entityTypeBuilder"> The builder for the entity type being configured. </param> /// <param name="parameterName"> The name of the storage parameter. </param> /// <param name="parameterValue"> The value of the storage parameter. </param> /// <param name="fromDataAnnotation">Indicates whether the configuration was specified using a data annotation.</param> /// <returns> The same builder instance so that multiple calls can be chained. </returns> public static IConventionEntityTypeBuilder SetStorageParameter( [NotNull] this IConventionEntityTypeBuilder entityTypeBuilder, string parameterName, object parameterValue, bool fromDataAnnotation = false) { if (entityTypeBuilder.CanSetStorageParameter(parameterName, parameterValue, fromDataAnnotation)) { entityTypeBuilder.Metadata.SetStorageParameter(parameterName, parameterValue); return(entityTypeBuilder); } return(null); }