Last active
August 29, 2015 14:07
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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