Esempio n. 1
0
        private object GetScalarResult(string SQL, string DB, int Timeout, List<SqlParameter> Parms)
        {
            AppScalarResult oScalarResult;

            oScalarResult = new AppScalarResult(new ConnectionInfo(this.oConnInfo.ConnectionString, DB), SQL, Timeout, Parms);

            return oScalarResult.Execute();
        }
Esempio n. 2
0
        private object GetScalarResult(string SQL, string DB, int Timeout, SqlParameter SingleParm)
        {
            AppScalarResult oScalarResult;
            var Parms = new List<SqlParameter>();

            if (SingleParm != null)
            {
                Parms.Add(SingleParm);
            }

            oScalarResult = new AppScalarResult(new ConnectionInfo(this.oConnInfo.ConnectionString, DB), SQL, Timeout, Parms);

            return oScalarResult.Execute();
        }