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

            return(result);
        }
예제 #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);
        }
예제 #4
0
 public bool Exists()
 {
     SqlProvider.FormatExists();
     SetSql();
     return(DbCon.ExecuteScalar <int>(SqlProvider.SqlString, SqlProvider.Params) == 1);
 }
예제 #5
0
 public async Task <bool> ExistsAsync()
 {
     SqlProvider.FormatExists();
     SetSql();
     return(await DbCon.ExecuteScalarAsync <int>(SqlProvider.SqlString, SqlProvider.Params) == 1);
 }