Um...the child class
EditCollectionGroupViewModel
derives from the parent
CollectionGroupViewModel
class - so it already contains all the properties for the parent.
You don't need to copy values, unless you are trying to create a new child based on the parent. In that case, I'd create a child constructor which accepted a parent as the parameter and copied the values.
public EditCollectionGroupViewModel(CollectionGroupViewModel parent)
{
TenantID = parent.TenantID;
...
}
But a better way would be to create an instance of teh child class in teh first place instead of the parent:
for (int i = 0; i < 10; i++)
{
CollectionGroupViewModel model = new EditCollectionGroupViewModel();
model.TenantID = i + 1000;
model.Market = "UK";
model.GroupName = "Collection Group 1";
model.GTS = "yes";
model.ProcessingCenter = "Processing Centre 1";
modelList.Add(model);
}