This sample throw the error I describe previously when context.SaveChanges(); is called in main.
If you look at file : 20240731133414_InitialCreate.Designer.cs: you will see two entries with the same foreign key name : HasConstraintName("fk_montants_pieces_piece_id");
and in ExceptionProcessorInterceptor class line 118, mappedConstraints contains the same two constraint name, so ToDictionary fail.
@Giorgi https://github.com/Eric-Ans/TestEntityFrameworkExceptions
This sample throw the error I describe previously when context.SaveChanges(); is called in main.
If you look at file : 20240731133414_InitialCreate.Designer.cs: you will see two entries with the same foreign key name : HasConstraintName("fk_montants_pieces_piece_id");
and in ExceptionProcessorInterceptor class line 118, mappedConstraints contains the same two constraint name, so ToDictionary fail.
Originally posted by @Eric-Ans in https://github.com/Giorgi/EntityFramework.Exceptions/issues/71#issuecomment-2260585140