Skip to content

Instantly share code, notes, and snippets.

@chester89
Created June 1, 2015 20:12
Show Gist options
  • Save chester89/02772873848e2e54d209 to your computer and use it in GitHub Desktop.
Save chester89/02772873848e2e54d209 to your computer and use it in GitHub Desktop.
RavenDb index involving NodaTime functionality
from epi in docs.ExchangePoints
select new
{
Value = epi.FixedAt.AsZonedDateTime().ToOffsetDateTime().Resolve()
};
from result in results
group result by 0
into g
select new
{
Value = g.Max(x => x.Value)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment