file C# collections code generation problem

9 months 1 week ago #5671 by fjaen
I have a model with a 1-Many association. The C# code generation feature generates

public virtual List<Car> cars

But I need the type to be ICollection<Car> instead of List<Car>.

How could I do this? All the available collections in the dropdown list are classes but no interfaces available .
Is there a way to configure ICollection to be the default type generated for collections?
Thanks in advance for your help

Please Log in or Create an account to join the conversation.

Moderators: tmaebr
Time to create page: 0.029 seconds
^ Back to Top