DEV Community

Discussion on: Get started with GraphQL and Entity Framework

menorless profile image
Francisco Mendez

Hi Michael @michaelstaib

Look, I don't like this:

public virtual ICollection Enrollments { get; set; }

Because I don't like to apply attributes to my models.
My question is:

There's a way that I can get this behavior but by applying it into ObjectType without losing the IQueriable feature?

michaelstaib profile image
Michael Staib Author

You can also use our fluent API.