- PedigreeCalculator: pure, EF-free Wright path-method engine (recursive F_A,
per-common-ancestor contributions, generationsAvailable, cycle guards)
- InbreedingService: loads pedigree from ApplicationContext shadow FKs
(Gerbils.LitterId, Litters.FatherId/MotherId) into in-memory maps
- InbreedingController: GET /gerbils/{id}/inbreeding-coefficient,
POST /genetics/test-inbreeding (hypothetical pairing for Probeverpaarung)
- Injects ApplicationContext directly; no Program.cs change (Dwight owns it)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
10 lines
347 B
C#
10 lines
347 B
C#
namespace GerbilManagerWebAPI.Dtos
|
|
{
|
|
/// <summary>
|
|
/// Request body for a hypothetical pairing's inbreeding coefficient
|
|
/// (Inzuchtkoeffizient der geplanten Verpaarung). Either parent may be omitted,
|
|
/// in which case the coefficient is 0.
|
|
/// </summary>
|
|
public record TestInbreedingDto(Guid? FatherId, Guid? MotherId);
|
|
}
|