Adf.Core.Query.QueryManager.RunScalar C# (CSharp) Method

RunScalar() public static method

Provides the first column of the first row from the query resultset. Extra columns or rows are ignored.
The current state of the connection is closed.
public static RunScalar ( DataSources datasource, IAdfQuery query ) : object
datasource Adf.Core.Data.DataSources
query IAdfQuery The that defines the datasource name and query statement.
return object
        public static object RunScalar(DataSources datasource, IAdfQuery query)
        {
            using (new TracingScope())
            {
                return query == null ? 0 : GetHandler(datasource).RunScalar(query);
            }
        }