Skip to content

Instantly share code, notes, and snippets.

@dhoechst
Created July 12, 2017 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dhoechst/1eabd3f9e83a200bb007a5798113ff83 to your computer and use it in GitHub Desktop.
Save dhoechst/1eabd3f9e83a200bb007a5798113ff83 to your computer and use it in GitHub Desktop.
public class Loader {
public static Map<Id, Account> acountIdToRecordMap {
get {
if (acountIdToRecordMap == null) {
acountIdToRecordMap = new Map<Id, Account> ([Select Name from Account]);
}
return acountIdToRecordMap;
}
private set;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment