views:

144

answers:

0

Hi,

I am making an interface:

 ICollection<EF> FromDTOType(List<DTO> dto);

which takes a DTO object and converts it to a ICollection. I would like to have done the following instead, but it is not possible since it is not an interface.

System.Data.Collection.EntityCollection<EF> FromDTOType(List<DTO> dto);

Is possible to easily convert from an ICollection to an EntityCollection?