private static void ImportData( this Business.Media.Entities.NonPersistent.Section.Content.ScheduleSection target, Legacy.Media.Entities.Section.ScheduleSection source) { target.Name = source.Name; target.Index = source.Index; target.ShowRate = source.ShowRate; target.ShowRating = source.ShowRating; target.ShowTime = source.ShowTime; target.ShowDay = source.ShowDay; target.ShowDaypart = source.ShowDaypart; target.ShowStation = source.ShowStation; target.ShowProgram = source.ShowProgram; target.ShowLenght = source.ShowLenght; target.ShowCPP = source.ShowCPP; target.ShowGRP = source.ShowGRP; target.ShowSpots = source.ShowSpots; target.ShowEmptySpots = source.ShowEmptySpots; target.ShowCost = source.ShowCost; target.ShowLogo = source.ShowLogo; target.ShowTotalPeriods = source.ShowTotalPeriods; target.ShowTotalSpots = source.ShowTotalSpots; target.ShowTotalGRP = source.ShowTotalGRP; target.ShowTotalCPP = source.ShowTotalCPP; target.ShowAverageRate = source.ShowAverageRate; target.ShowTotalRate = source.ShowTotalRate; target.ShowNetRate = source.ShowNetRate; target.ShowDiscount = source.ShowDiscount; target.OutputPerQuater = source.OutputPerQuater; target.OutputMaxPeriods = source.OutputMaxPeriods; target.OutputNoBrackets = source.OutputNoBrackets; target.UseDecimalRates = source.UseDecimalRates; target.UseGenericDateColumns = source.UseGenericDateColumns; foreach (var oldProgram in source.Programs) { var program = new Business.Media.Entities.NonPersistent.Section.Content.Program(target); program.ImportData(oldProgram); target.Programs.Add(program); } target.Summary.ImportData(source.Summary); target.ContractSettings.ImportData(source.ContractSettings); }
private static void ImportData( this Business.Media.Entities.NonPersistent.Section.Content.Program target, Legacy.Media.Entities.Section.Program source) { target.Name = source.Name; target.Day = source.Day; target.Index = source.Index; target.Logo.ImportData(source.Logo); target.Station = source.Station; target.Daypart = source.Daypart; target.Time = source.Time; target.Length = source.Length; target.Rate = source.Rate; target.Rating = source.Rating; foreach (var oldSpot in source.Spots) { var spot = new Business.Media.Entities.NonPersistent.Section.Content.Spot(target); spot.ImportData(oldSpot); target.Spots.Add(spot); } }