/// <summary>
        /// Configures the mapped table to use an unlogged table when targeting Npgsql.
        /// </summary>
        /// <param name="entityTypeBuilder">The builder for the entity type being configured.</param>
        /// <param name="unlogged">True to configure the entity to use an unlogged table; otherwise, false.</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>
        /// <remarks>
        /// See: https://www.postgresql.org/docs/current/sql-createtable.html#SQL-CREATETABLE-UNLOGGED
        /// </remarks>
        public static IConventionEntityTypeBuilder?IsUnlogged(
            this IConventionEntityTypeBuilder entityTypeBuilder,
            bool unlogged           = true,
            bool fromDataAnnotation = false)
        {
            if (entityTypeBuilder.CanSetIsUnlogged(unlogged, fromDataAnnotation))
            {
                entityTypeBuilder.Metadata.SetIsUnlogged(unlogged, fromDataAnnotation);

                return(entityTypeBuilder);
            }

            return(null);
        }