本文整理匯總了C#中SoMeTech.DataAccess.DB_OPT.BackIsSelect方法的典型用法代碼示例。如果您正苦於以下問題:C# DB_OPT.BackIsSelect方法的具體用法?C# DB_OPT.BackIsSelect怎麽用?C# DB_OPT.BackIsSelect使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SoMeTech.DataAccess.DB_OPT
的用法示例。
在下文中一共展示了DB_OPT.BackIsSelect方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Exists
public override int Exists(DB_OPT dbo)
{
StringBuilder builder = new StringBuilder();
builder.Append("select count(1) from GOV_TC_DB_ZSZXFJ");
builder.Append(" where pk='" + base.pk + "' ");
return dbo.BackIsSelect(builder.ToString(), null);
}
示例2: Exists
public int Exists(string PK, DB_OPT dbo)
{
StringBuilder builder = new StringBuilder();
builder.Append("select count(PK) from GOV_TC_DB_SFProExecuteStandard");
builder.Append(" where PK=:PK");
OracleParameter[] parameters = new OracleParameter[] { new OracleParameter(":PK", OracleType.Char) };
parameters[0].Value = PK;
return dbo.BackIsSelect(builder.ToString(), parameters, "");
}
示例3: Exists
public override int Exists(DB_OPT dbo)
{
StringBuilder builder = new StringBuilder();
builder.Append("select count(PK) from gov_tc_db_ServicesType");
builder.Append(" where PK=:PK");
OracleParameter[] parameters = new OracleParameter[] { new OracleParameter(":PK", OracleType.VarChar) };
parameters[0].Value = base.PK;
return dbo.BackIsSelect(builder.ToString(), parameters, "");
}
示例4: Exists
public int Exists(string PK, string tablename, DB_OPT dbo)
{
StringBuilder builder = new StringBuilder();
builder.Append("select count(PK) from " + tablename);
builder.Append(" where PK=:PK");
OracleParameter[] parameters = new OracleParameter[] { new OracleParameter(":PK", OracleType.Char) };
parameters[0].Value = PK;
return dbo.BackIsSelect(builder.ToString(), parameters, "");
}
示例5: Exists
public override int Exists(DB_OPT dbo)
{
StringBuilder builder = new StringBuilder();
if (base.BH != "")
{
builder.Append("select count(PK) from " + base.TableName + " where BH='" + base.BH + "'");
}
else
{
builder.Append("select count(PK) from " + base.TableName + " where PK='" + base.PK + "'");
}
return dbo.BackIsSelect(builder.ToString(), null);
}
示例6: Exists
public override int Exists(string PowerCode, DB_OPT dbo)
{
StringBuilder builder = new StringBuilder();
builder.Append("select count(1) from DB_Menu where PowerCode='" + PowerCode + "'");
return dbo.BackIsSelect(builder.ToString(), null);
}
示例7: Exists
public override int Exists(string bh, DB_OPT dbo)
{
StringBuilder builder = new StringBuilder();
builder.Append("select count(1) from DB_Role where BH='" + bh + "'");
return dbo.BackIsSelect(builder.ToString(), null);
}
示例8: Exists
public override int Exists(DB_OPT dbo)
{
StringBuilder builder = new StringBuilder();
builder.Append("select count(1) from GOV_TC_DB_UNITCOUNT where PK='" + base.PK + "'");
return dbo.BackIsSelect(builder.ToString(), null);
}
示例9: Exists
public override int Exists(DB_OPT dbo)
{
StringBuilder builder = new StringBuilder();
builder.Append("select count(pk_corp) from DB_Company where pk_corp='" + base.pk_corp + "'");
return dbo.BackIsSelect(builder.ToString(), null);
}
示例10: IsFlowOK
public static int IsFlowOK(string pk, DB_OPT dbo)
{
string strSql = "select Count(PK) from GOV_TC_DB_Operation where rtrim(OperationPK)='" + pk.Trim() + "'";
return dbo.BackIsSelect(strSql, null);
}
示例11: Exists
public override int Exists(string col, string val, DB_OPT dbo)
{
StringBuilder builder = new StringBuilder();
builder.Append("select count(EmployeePK) from DB_Employee where " + col + "='" + val + "'");
return dbo.BackIsSelect(builder.ToString(), null);
}
示例12: ExistsByUserPK
public override int ExistsByUserPK(DB_OPT dbo)
{
StringBuilder builder = new StringBuilder();
builder.Append("select count(UserPK) from DB_Users where UserPK='" + base.UserPK + "'");
return dbo.BackIsSelect(builder.ToString(), null);
}
示例13: Exists
public override int Exists(DB_OPT dbo)
{
StringBuilder builder = new StringBuilder();
builder.Append("select count(1) from db_DataRowPowerItem where PK='" + base.PK + "'");
return dbo.BackIsSelect(builder.ToString(), null);
}