file C# collections code generation problem

4 months 4 weeks ago #5671 by fjaen
Hello,
I have a model with a 1-Many association. The C# code generation feature generates

public virtual List<Car> cars
{
get;
set;
}

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.030 seconds
^ Back to Top