Is this mapping correct? The list can have multiple rows
I am very curious to know if say the list contains 3 rows, and all 3 rows will be mapped? Or do we need a looping?
public List<Data> DataDetails { get; set; }
public static DataDetails ToDataConvert ( this Datadto data)
{
 DataDetails = dto.DataDetails.Select(x => new Data()
                        {
                            Name = x.Name,
                            id = x.Id
                        })
                        .ToList()
}
 
     
    
