Пример #1
0
 public Dictionary<int, Model.tb_datanode_model> GetDataNodeModelsDic(DbConn PubConn, List<int> datanodepartition)
 {
     tb_datanode_dal datanodedal = new tb_datanode_dal();
     var rs = new Dictionary<int, Model.tb_datanode_model>();
     foreach (var o in datanodedal.List(PubConn, datanodepartition))
         rs.Add(o.datanodepartition, o);
     return rs;
 }
Пример #2
0
 public virtual string GetDataNodeConnectString(DbConn PubConn, int datanodepartition)
 {
     tb_datanode_dal dal = new tb_datanode_dal();
     var model = dal.Get2(PubConn, datanodepartition);
     if (model == null)
         throw new BusinessMQException("当前数据节点不存在:" + datanodepartition);
     return GetDataNodeConnectString(SystemParamConfig.Consumer_DataNode_ConnectString_Template, model);
 }