public SeasonStatisticSetDTO MapToSeasonStatisticSetDTO(SeasonStatisticSetEntity source, SeasonStatisticSetDTO target = null) { if (source == null) { return(null); } if (target == null) { target = new SeasonStatisticSetDTO(); } MapToStatisticSetDTO(source, target); target.ScoringTableId = source.ScoringTableId; target.SeasonId = source.SeasonId; return(target); }
public SeasonStatisticSetEntity MapToSeasonStatisticSetEntity(SeasonStatisticSetDTO source, SeasonStatisticSetEntity target = null) { if (source == null) { return(null); } if (target == null) { target = DefaultGet <SeasonStatisticSetEntity>(source); } if (MapToRevision(source, target) == false) { return(target); } MapToStatisticSetEntity(source, target, force: true); target.ScoringTable = DefaultGet <ScoringTableEntity>(new object[] { source.ScoringTableId }); target.Season = DefaultGet <SeasonEntity>(new object[] { source.SeasonId }); return(target); }