Open GioviQ opened 2 years ago
@GioviQ Can you provide a minimal repo to test this implementation and share more details about the Exception?
@Sharaf-Mansour I think it is very clear that item property is not found, have you click on the link pointing to the exact line of code where the issue is?
@GioviQ Yes I have seen it, but it says
This code assumes C# conventions (one indexer named Item with one param)
and if it is not found it will return null which is checked in the line after.
I needed more details like the exception msg and mini repo to interstage the issue further so I can assist.
@Sharaf-Mansour see my PR
@GioviQ: Ideally you replicate the issue online here: https://www.telerik.com/blazor-ui/repl, so the the maintainers does not have to spent time replicating the issue.
In your particular case, it seems, the the bug is related to code you haven't posted anywhere (NotifiableCollection.cs probably?).
Anyway, I think your PR does not solve the source of the issue, see my comment
The PR has been tested with https://github.com/enkodellc/blazorboilerplate
I have the following validator:
Orders is of type https://github.com/Breeze/breeze.sharp/blob/master/Breeze.Sharp/INavigationSet.cs#L60
This line https://github.com/Blazored/FluentValidation/blob/main/src/Blazored.FluentValidation/EditContextFluentValidationExtensions.cs#L171 gives Ambiguos Match Exception
The escamotage is creating and using a derived property like
List<Order> OrderList { get => Orders.ToList() }
, but I would like not to use it.