Created
June 12, 2015 18:42
-
-
Save Godoy/c423cce4a3c2f8d8a39e to your computer and use it in GitHub Desktop.
dispose context controller asp.net c# mvc
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
| private Context context = new Context(); | |
| protected override void Dispose(bool disposing) | |
| { | |
| if (disposing) { | |
| context.Dispose(); | |
| } | |
| base.Dispose(disposing); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment