title: Plugin bypassed when Entity queried from console application
body: <p>My plugin encrypts/decrypts a field. Works on the field within a CRM form.</p>
  
  <p>From my console application, a retrieve bypasses my plugin, e.g., it retrieves the encrypted value directly from the database without running the plugin. When debugging, breakpoints in the plugin are hit when the field is accessed from a form , but they are not hit when accessed from my console program.</p>
  
  <p>I'm surprised that my plugin isn't invoked from a program. It bypasses my business rules.</p>
  
  <p>Here is how I'm accessing the entity and the field from a program:</p>
  
  <pre><code>    private static OrganizationServiceProxy service = null;
      private static OrganizationServiceContext orgSvcContext = null;
      public static void RetrieveSSNs()
      {
          var query = orgSvcContext.CreateQuery("bpa_consumer");
          foreach (Entity consumer in query)
          {
              if (consumer.Attributes.Contains("bpa_ssn"))
              {
                  string ssn = consumer["bpa_ssn"].ToString();
                  Console.WriteLine(string.Format("Consumer \"{0}\" has SSN {1}", consumer.Attributes["bpa_name"], ssn));
              }
              else
              {
                  Console.WriteLine(string.Format("Consumer \"{0}\" doesn't have a SSN", consumer.Attributes["bpa_name"]));
              }
          }
      }
  </code></pre>