Example #1
0
        public static string SelectScalar(string sqlString)
        {
            object value = null;

            using (DataAccessBroker broker = DataAccessFactory.Instance())
            {
                value = broker.ExecuteSQLScalar(sqlString);
            }
            return(value == null ? null : value.ToString());
        }
Example #2
0
        public static string SelectScalar(string sqlString, DataAccessBroker broker)
        {
            object value = broker.ExecuteSQLScalar(sqlString);

            return(value == null ? null : value.ToString());
        }