Adf.Core.Query.QueryManager.RunScalar C# (CSharp) 메소드

RunScalar() 공개 정적인 메소드

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.
리턴 object
        public static object RunScalar(DataSources datasource, IAdfQuery query)
        {
            using (new TracingScope())
            {
                return query == null ? 0 : GetHandler(datasource).RunScalar(query);
            }
        }