public override TestReferenceCollectionBuilder <TEntity, TRelatedEntity> HasPrincipalKey( Expression <Func <TEntity, object> > keyExpression) => Wrap(ReferenceCollectionBuilder.HasPrincipalKey(keyExpression.GetPropertyAccessList().Select(p => p.Name).ToArray()));
public override TestReferenceCollectionBuilder <TEntity, TRelatedEntity> HasPrincipalKey( Expression <Func <TEntity, object?> > keyExpression) => Wrap( ReferenceCollectionBuilder.HasPrincipalKey( keyExpression.GetMemberAccessList().Select(p => p.GetSimpleMemberName()).ToArray()));