/// <summary> /// Class constructor that should be used if the TS object will read or write to database /// </summary> /// <param name="connx">SqlConnection object that this object will use</param> /// <param name="tsConnection">Object that manages connection objects for TimeSeriesLibrary</param> /// <param name="paramTableName">Name of the table in the database that stores this object's record</param> /// <param name="traceTableName">The name of the database table that stores the BLOB for a single trace</param> public TS(TSConnection tsConnection, String paramTableName, String traceTableName) { // Store the method parameters in class fields TSConnection = tsConnection; ParametersTableName = paramTableName; TraceTableName = traceTableName; // Mark this time series as uninitialized // (because the meta parameters have not yet been read from the database) IsInitialized = false; }
/// <summary> /// Class constructor that should be invoked if the XML object will save to the database /// </summary> /// <param name="connx">SqlConnection object that this object will use</param> /// <param name="tableName">Name of the table in the database that stores this object's records</param> /// <param name="traceTableName">The name of the database table that stores the BLOB for a single trace</param> public TSXml(TSConnection connx, String tableName, String traceTableName) { TSConnection = connx; TableName = tableName; TraceTableName = traceTableName; }
/// <summary> /// Class constructor that should be invoked if the XML object will NOT save to the database /// </summary> public TSXml() { TSConnection = null; TableName = null; }
/// <summary> /// Class constructor. /// In accord with the COM callable wrapper, this constructor can not take any parameters, /// and there can be no other constructors besides this one. /// </summary> public ComTSLibrary() { // The ComTSLibrary class wraps an instance of the TSLibrary class TSLib = new TSLibrary(); // This class's ConnxObject field is simply a reference to the ConnxObject // field in the TSLibrary object that this class wraps. ConnxObject = TSLib.ConnxObject; }