namespace ReC.Infrastructure.Options.Shared; public record EntityBaseOptions() { public Dictionary Columns { get; init; } = []; public void EnsureProperties(IEnumerable propertyNames) { var missingProperties = propertyNames.Except(Columns.Select(col => col.Key)).ToList(); if (missingProperties.Count != 0) throw new InvalidOperationException($"The following properties are not configured: {string.Join(", ", missingProperties)}"); } }