This file contains hidden or 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
| /// <summary> | |
| /// Gets the DbContextManager object for the specified DbContext. | |
| /// </summary> | |
| /// <param name="context"> | |
| /// The DbContext to manage. | |
| /// </param> | |
| public static DbContextManager<C> GetManager(DbContext context) | |
| { | |
| return GetManager(context, "default"); | |
| } |
This file contains hidden or 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
| <# | |
| The command to run, built from the raw link of this gist | |
| Win+R | |
| iexplore http://boxstarter.org/package/url?<RAW GIST LINK> | |
| OR (if you don't like the way the web launcher force re-installs everything) |
This file contains hidden or 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
| {{/* | |
| figure with auto-resizing and srcset v2020-05-10 | |
| Drop-in replacement for Hugo's figure shortcode as of 2020-05-02 that uses img srcset | |
| to enable browsers to download only the resolution that they need. | |
| The resizing and srcset magic only works for images that are part of the page | |
| bundle. It will fall back to stock Hugo figure behaviour otherwise. |