Path: redb/redb.Postgres/Extensions/PropertyInfoExtensions.cs
Snapshot: redb, development snapshot 2026-12-06. This is the development state of the public mirrors; it may differ from the published packages.
License: Apache-2.0. Repository: https://github.com/redbase-app/redb
Page: https://redbase.app/src/dev-2026-12-06/redb/redb.Postgres/Extensions/PropertyInfoExtensions.cs
----
using System.Reflection;
using System.Text.Json.Serialization;
using redb.Core.Attributes;
namespace redb.Postgres.Extensions
{
///
/// Extensions for working with PropertyInfo
///
internal static class PropertyInfoExtensions
{
///
/// Checks if property should be ignored by REDB
///
/// Property to check
/// true if property should be ignored
public static bool ShouldIgnoreForRedb(this PropertyInfo property)
{
return //property.GetCustomAttributes(typeof(JsonIgnoreAttribute), false).Length > 0 ||
property.GetCustomAttributes(typeof(RedbIgnoreAttribute), false).Length > 0;
}
}
}