Using Details/Master Component with IEnumerable


Im trying to use the Master/Detail Component to show some data. Im using EF Core 5.0.1 and a repository pattern. my repository returns a list/IEnumerable.

When I try opening the page I get a NullReferenceException. When I Put my data access on the page and use a IQueryable It loads the data.

When I let my repository return an IQueryable I have a problem with my context. My context is being created by a factory in my repository.

Is there a way to use an IEnumerable instead of IQueryable?

Hi @Urganot,

Can you post the stack trace of the exception?

I don't know what I did wrong but it works now. I just rewrote the page and suddenly it worked