partial void CopyExtraPropertiesToClone(AutomatedTestAssignment clone, bool includeLocalProperties);
public AutomatedTestAssignment Clone(bool includeLocalProperties) { var c = new AutomatedTestAssignment { AssignedTo = AssignedTo, AssignedToId = AssignedToId, AutomatedTest = AutomatedTest, AutomatedTestId = AutomatedTestId, Id = Id, Name = Name, Package = Package, PackageId = PackageId, Status = Status, Totals = Totals, Runs = Runs.Select(x=>x.Clone(includeLocalProperties)).ToList(), }; CopyExtraPropertiesToClone(c, includeLocalProperties); return c; }