namespace IceImportBLL.FieldResolvers; // ValueType = 11 (First Parent Value). Returns the grandparent row's id, for 3-level hierarchies // (e.g. Header -> Detail -> Sub-detail, where the sub-detail also needs the Header's id). // // Not part of the real MICEMAPDETAILS.VALUETYPE check-constraint enum (-1..9 only) — this is a // GB5-only addition with no GB4 precedent, so it deliberately sits outside that range. It // previously used 8, which collided with the real "Fixed Value during Update" slot (see // FixedDuringUpdateResolver) once the actual legacy source confirmed the true 0-9 numbering. public class FirstParentValueResolver : IIceFieldValueResolver { public int ValueType => 11; public Task ResolveAsync(FieldResolutionContext ctx, CancellationToken ct) => Task.FromResult(FieldResolutionResult.Ok(ctx.FirstParentId)); }