Path: redb/redb.Core/Materialization/IPropsMaterializer.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.Core/Materialization/IPropsMaterializer.cs
----
using redb.Core.Models.Contracts;
namespace redb.Core.Materialization;
///
/// Materializes Props objects from database values.
/// Implementation-specific: Pro uses PVT values, Open-Source uses JSON from SQL functions.
///
public interface IPropsMaterializer
{
///
/// Batch materialize Props for multiple objects.
/// Loads values from database and populates Props property on each object.
///
/// Props class type
/// Objects to materialize Props for
///
/// Optional: structure IDs to include in projection.
/// If null, all fields are loaded.
///
Task MaterializeManyAsync(
IReadOnlyList objects,
IEnumerable? projectedStructureIds = null) where TProps : class, new();
}