Ejemplo n.º 1
0
 public void Create(DependencyCreateArgs args)
 {
     instance = new DbConnDependency();
     DBConnDependencyCreateArgs arg = (DBConnDependencyCreateArgs)args;
     if (arg == null)
         throw new ArgumentException();
     IDbOp op = arg.DbOp;
     op.ConnectionState.RegisterDependency(DependentableChangedCallback);
 }
 public void Create(DependencyCreateArgs args)
 {
     AggregateDependencyCreateArgs arg = (AggregateDependencyCreateArgs)args;
     IDependencyWrapper[] wrappers = arg.Wrappers;
     instance = new AggregateCacheDependency();
     foreach (IDependencyWrapper wrapper in wrappers)
     {
         instance.Add((CacheDependency)wrapper.Instance);
     }
 }
 public void Create(DependencyCreateArgs args)
 {
     DBDependencyCreateArgs arg=(DBDependencyCreateArgs)args;
     if (args == null)
         throw new ArgumentException();
     OracleConnection conn = (OracleConnection)arg.DbOp.GetConnection();
     using (OracleCommand cmd = new OracleCommand(arg.Sql, conn))
     {
         instance = new OracleCacheDependency(cmd);
     }
 }
Ejemplo n.º 4
0
 public void Create(CreateArgs.DependencyCreateArgs args)
 {
     throw new NotImplementedException();
 }