title: Will my static method return a new EF context to every object that calls it?
body: <p>Say that I have a WCF service that creates a separate instance of this RuleController on every WCF call:</p>
  
  <pre><code>public class RuleController
  {
      private PresenceEntities _context;
  
      public RuleController()
      {
          _context = ContextCreator.GetEFContext();
      }
   }
  </code></pre>
  
  <p>Here is ContextCreator:</p>
  
  <pre><code>public static class ContextCreator
  {
     public static PresenceEntities GetEFContext()
     {
       // Retrieve database configuration
       var modelFilePath = ConfigurationManager.AppSettings["ModelFilePath"];
       var connectionProvider = ConfigurationManager.AppSettings["ConnectionProvider"];
       var connectionString = ConfigurationManager.AppSettings["ConnectionString"];
  
       var builder = new EntityConnectionStringBuilder();
       builder.Metadata = modelFilePath;
       builder.Provider = connectionProvider;
       builder.ProviderConnectionString = connectionString;
  
       var edmConnectionString = builder.ToString();
       return new PresenceEntities(edmConnectionString);
     }
  }
  </code></pre>
  
  <p>Will each instance of RuleController get its own instance of entity framework context if I use a static method in this way?
  I thinking yes since the reference to _context is held in RuleController, but I am not 100% sure. </p>
  
  <p>Edit: Amended GetEFContext method to include the part where the connection string is built. </p>