I think there is two main ways (or more) to define Entity framework Context:
Define one Context in the whole App and then use it during all it's life cycle, so here the Context will be disposed after closing the app, I defined this variable in MainWindow then I used it in all my app windows and User Conteols
public static SC_Context Context = new SC_Context();
Define the context every time we want to deal with the database and dispose that context after that. In this way, I make partial classes and write method inside:
using (SC_Context Context = new SC_Context()) { //Bla Bla Bla }
Actually, I used both ways in many apps, Websites and Windows apps and I saw many samples and developers using them.
Simply my question is: Which is better -using one context for whole app or use one context for each procedure with DB- for App performance and RAM consumption and Why?