Set ClientID while using Entity Framework 5
How do you set the ClientID on queries, updates and especially deletes while using Entity Framework?
We are able to set it when not using Entity Framework by doing the following:
using (OracleConnection oCon = new OracleConnection(connString))
{
try
{
oCon.Open();
oCon.ClientID = "jnelson";
...
However, we have not had success with this approach while using Entity Framework.
OracleConnection oCon = (OracleConnection)myEnt.Database.Connection;
try
{
oCon.Open();
oCon.ClientID = "jnelson";
...
When we use myEnt.SaveChanges() we do not get any errors but the USERENV CLIENT_IDENTIFIER comes across as null.
Any ideas would be appreciated.