Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@boserup
Created December 12, 2017 08:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boserup/bab3750d4af217c171c5818cf08da1b2 to your computer and use it in GitHub Desktop.
Save boserup/bab3750d4af217c171c5818cf08da1b2 to your computer and use it in GitHub Desktop.
public static List<User> All() {
return PersistentObject.INSTANCE.Fetch(
new Dictionary<string, object>(),
"users",
typeof(Book)
).ConvertAll(x => (Book)x);
}
public static List<User> All() {
return PersistentObject.INSTANCE.Fetch(
new Dictionary<string, object>(),
"users",
typeof(this)
).ConvertAll(x => (Book)x);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment