/// <summary> /// Executes the specified command text against the database connection of the context and returns the single value. /// </summary> public object ExecuteScalar(string command, CommandType commandType, params IDataParameter[] @params) { using (new DatabaseContext(ConnectionString)) { return(DataAccessor <TConnection, TDataAdapter> .ExecuteScalar(command, commandType, @params)); } }
/// <summary> /// Executes the specified command text against the database connection of the context and returns the single value. /// </summary> public object ExecuteScalar(string command, CommandType commandType, params IDataParameter[] @params) { using (new DatabaseContext(ConnectionString)) { System.Diagnostics.Trace.WriteLine(command); return(DataAccessor <TConnection, TDataAdapter> .ExecuteScalar(command, commandType, @params)); } }