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