public PivotDataManagerBase(ConnectionInfo connection, String query, String updateScript) { m_Connection = connection; Query = query; UpdateScript = updateScript; m_History = new HistoryManager(); m_History.AddHistoryItem(new HistoryItem()); }
internal static ConnectionInfo Deserialize(XmlReader reader) { if (reader != null) { try { ConnectionInfo target = new ConnectionInfo(); reader.ReadStartElement("ConnectionInfo"); // Свойства reader.ReadStartElement("ConnectionString"); if (reader.NodeType == XmlNodeType.Text) { target.ConnectionString = reader.ReadContentAsString(); reader.ReadEndElement(); } reader.ReadStartElement("ConnectionID"); if (reader.NodeType == XmlNodeType.Text) { target.ConnectionID = reader.ReadContentAsString(); reader.ReadEndElement(); } if (reader.NodeType == XmlNodeType.EndElement && reader.Name == "ConnectionInfo") { reader.ReadEndElement(); } return target; } catch (XmlException) { throw; //return null; } } return null; }
public DefaultQueryExecuter(ConnectionInfo connection) { m_Connection = connection; }
protected abstract IQueryExecuter CreateQueryExecutor(ConnectionInfo connection);
protected override IQueryExecuter CreateQueryExecutor(ConnectionInfo connection) { return new DefaultQueryExecuter(connection); }
public OlapPivotDataManager(ConnectionInfo connection, String query, String updateScript) : base(connection, query, updateScript) { }