Skip to content

Instantly share code, notes, and snippets.

@shaxxx
Last active August 29, 2015 14:07
Show Gist options
  • Save shaxxx/6c3a27f26efd0653abe4 to your computer and use it in GitHub Desktop.
Save shaxxx/6c3a27f26efd0653abe4 to your computer and use it in GitHub Desktop.
Vb.net Linq method syntax to select Id and stamp of existing object into anonymous type directly. To be used later for update or delete.
Dim document = ctx.Documents.Where(Function(x) x.Id = Id).Select(Function(x) New With {Key .Id = x.Id, .stamp = x.stamp}).Single()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment