file C# collections code generation problem

1 year 4 months 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: tma
Time to create page: 0.041 seconds
^ Back to Top