本文整理汇总了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);
}