public DbConnection CreateConnection() { DbConnection dbconn = dbFactory.CreateConnection(); if (handler != null) { dbConnectionString = handler(dbConnectionString); handler = null; } dbconn.ConnectionString = dbConnectionString; return dbconn; }
public DbConnection CreateConnection() { DbConnection dbconn = dbFactory.CreateConnection(); if (decryptProxy != null) { dbConnectionString = decryptProxy(dbConnectionString); decryptProxy = null; } dbconn.ConnectionString = dbConnectionString; return(dbconn); }
public DbConnection CreateConnection() { DbConnection dbconn = dbFactory.CreateConnection(); if (handler != null) { dbConnectionString = handler(dbConnectionString); handler = null; } dbconn.ConnectionString = dbConnectionString; return(dbconn); }
public void SetDecryptHandler(DecryptEventHandler decryptProxy) { this.decryptProxy = decryptProxy; }
//设置解密的handler public void SetDecryptHandler(DecryptEventHandler handler) { this.handler = handler; }
internal void SetEventHandler(DecryptEventHandler decryptEvent) { this.dbHelper.SetDecryptHandler(decryptEvent); }
internal void SetDecryptHandler(DecryptEventHandler handler) { this.dbHelper.SetDecryptHandler(handler); }
/// <summary> /// 注册解密的Handler /// </summary> /// <param name="handler"></param> public void RegisterDecryptor(DecryptEventHandler handler) { this.dbProvider.SetDecryptHandler(handler); }