title: How to or where is the reference of the db parameter to its database context column on a DB interceptor method?
body: <p>The purpose is to intercept queries to and from the database where if a certain column is detected it would encrypt/decrypt the value, for example an SSN column. We're using EF6 with Devart MySQL. I've been able to use the method &quot;ReaderExecuting&quot; DB Interceptor of EF but stuck on what the basis to decide to do the encryption/decryption on the value of a parameter:</p>
  <p><a href="https://i.stack.imgur.com/qnYxv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qnYxv.png" alt="enter image description here" /></a></p>
  <p>As you can see, the command text is there and the collection of parameters, but what should I need to configure in order to connect the parameter to the db context column? And maybe even get the custom attributes set for that column?</p>
  <p>Followed this guide: <a href="https://docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/getting-started-with-ef-using-mvc/connection-resiliency-and-command-interception-with-the-entity-framework-in-an-asp-net-mvc-application" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/mvc/overview/getting-started/getting-started-with-ef-using-mvc/connection-resiliency-and-command-interception-with-the-entity-framework-in-an-asp-net-mvc-application</a></p>