Beispiel #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="data"></param>
        virtual public object InsertFlowmeterData(int deviceID, FlowmeterData data)
        {
            string s = string.Format(
                "insert into tblFluxData(deviceid, DT, instantFlux, sum) values({0}, '{1}', {2}, {3})",
                deviceID, data.DT, data.InstantFlux, data.Sum);

            return(ExecuteScalar(s));
        }
Beispiel #2
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="data"></param>
        public virtual object InsertFlowmeterData(int deviceID, FlowmeterData data)
        {
            string s = string.Format(
                    "insert into tblFluxData(deviceid, DT, instantFlux, sum) values({0}, '{1}', {2}, {3})",
                    deviceID, data.DT, data.InstantFlux, data.Sum);

            return ExecuteScalar(s);
        }