Skip to content

Instantly share code, notes, and snippets.

@moaschterle
Created June 20, 2014 14:41
Show Gist options
  • Save moaschterle/2c6e37519f5094652185 to your computer and use it in GitHub Desktop.
Save moaschterle/2c6e37519f5094652185 to your computer and use it in GitHub Desktop.
var mysorted = (from x in mysoapclient.AllGames().OrderBy(x => x.dPlayDate).ThenBy(x => x.tPlayTime)
let y = x.Goals.OrderBy(z => z.iMinute)
select new ServiceReferenceFootBallPool.tGameInfo
{
bChampion = x.bChampion,
Cards = x.Cards,
dPlayDate = x.dPlayDate,
Goals = y.ToArray(),
iId = x.iId,
iRedCards = x.iRedCards,
iYellowCards = x.iYellowCards,
sDescription = x.sDescription,
sResult = x.sResult,
sScore = x.sScore,
StadiumInfo = x.StadiumInfo,
Team1 = x.Team1,
Team2 = x.Team2,
tPlayTime = x.tPlayTime
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment