Exemple #1
0
        public bool Exists()
        {
            SqlProvider.FormatExists();
            SetSql();
            var result = DbCon.QuerySingle <int>(SqlProvider.SqlString, SqlProvider.Params) == 1;

            return(result);
        }
Exemple #2
0
        public async Task <bool> ExistsAsync()
        {
            SqlProvider.FormatExists();
            SetSql();
            var result = await DbCon.QuerySingleAsync <int>(SqlProvider.SqlString, SqlProvider.Params) == 1;

            return(result);
        }
        public bool Exists()
        {
            SqlProvider.FormatExists();

            return(DbCon.QuerySingle <int>(SqlProvider.SqlString, SqlProvider.Params) == 1);
        }
Exemple #4
0
 public bool Exists()
 {
     SqlProvider.FormatExists();
     SetSql();
     return(DbCon.ExecuteScalar <int>(SqlProvider.SqlString, SqlProvider.Params) == 1);
 }
Exemple #5
0
 public async Task <bool> ExistsAsync()
 {
     SqlProvider.FormatExists();
     SetSql();
     return(await DbCon.ExecuteScalarAsync <int>(SqlProvider.SqlString, SqlProvider.Params) == 1);
 }