/// <summary> /// Executes the query as a scalar /// </summary> /// <param name="query"></param> /// <param name="returnInt"></param> public static void ExecuteScalar(Query query, ref int?returnInt) { VerifyQueryObject(query); ISqlQuery sqlClass = new SQLServer(GetConnectionString()); returnInt = sqlClass.ExecuteAsInt(query); }