コード例 #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);
        }
コード例 #3
0
        public bool Exists()
        {
            SqlProvider.FormatExists();

            return(DbCon.QuerySingle <int>(SqlProvider.SqlString, SqlProvider.Params) == 1);
        }
コード例 #4
0
ファイル: Aggregation.cs プロジェクト: zl33842901/SqlEx
 public bool Exists()
 {
     SqlProvider.FormatExists();
     SetSql();
     return(DbCon.ExecuteScalar <int>(SqlProvider.SqlString, SqlProvider.Params) == 1);
 }
コード例 #5
0
ファイル: Aggregation.cs プロジェクト: zl33842901/SqlEx
 public async Task <bool> ExistsAsync()
 {
     SqlProvider.FormatExists();
     SetSql();
     return(await DbCon.ExecuteScalarAsync <int>(SqlProvider.SqlString, SqlProvider.Params) == 1);
 }