Example #1
0
 public DbConnection CreateConnection()
 {
     DbConnection dbconn = dbFactory.CreateConnection();
     if (handler != null)
     {
         dbConnectionString = handler(dbConnectionString);
         handler = null;
     }
     dbconn.ConnectionString = dbConnectionString;
     return dbconn;
 }
Example #2
0
        public DbConnection CreateConnection()
        {
            DbConnection dbconn = dbFactory.CreateConnection();

            if (decryptProxy != null)
            {
                dbConnectionString = decryptProxy(dbConnectionString);
                decryptProxy       = null;
            }
            dbconn.ConnectionString = dbConnectionString;
            return(dbconn);
        }
Example #3
0
        public DbConnection CreateConnection()
        {
            DbConnection dbconn = dbFactory.CreateConnection();

            if (handler != null)
            {
                dbConnectionString = handler(dbConnectionString);
                handler            = null;
            }
            dbconn.ConnectionString = dbConnectionString;
            return(dbconn);
        }
Example #4
0
 public void SetDecryptHandler(DecryptEventHandler decryptProxy)
 {
     this.decryptProxy = decryptProxy;
 }
Example #5
0
 //设置解密的handler
 public void SetDecryptHandler(DecryptEventHandler handler)
 {
     this.handler = handler;
 }
Example #6
0
 internal void SetEventHandler(DecryptEventHandler decryptEvent)
 {
     this.dbHelper.SetDecryptHandler(decryptEvent);
 }
Example #7
0
 internal void SetDecryptHandler(DecryptEventHandler handler)
 {
     this.dbHelper.SetDecryptHandler(handler);
 }
Example #8
0
 /// <summary>
 /// 注册解密的Handler
 /// </summary>
 /// <param name="handler"></param>
 public void RegisterDecryptor(DecryptEventHandler handler)
 {
     this.dbProvider.SetDecryptHandler(handler);
 }
Example #9
0
 //设置解密的handler
 public void SetDecryptHandler(DecryptEventHandler handler)
 {
     this.handler = handler;
 }