标签:dem 查询 logs exist har blog arguments pen method
public void ExistsMethodDemo()
{
string userId = "123";
string userName = "admin";
DALDb db = new DALDb();
// sql 语句
PetaPoco.Sql sql = PetaPoco.Sql.Builder.Append("USERID=@0", userId);
sql.Append("and USERNAME=@0", userName);
// 查询
bool result = db.Exists<USER>(sql.SQL, sql.Arguments);
}
标签:dem 查询 logs exist har blog arguments pen method
原文地址:http://www.cnblogs.com/james641/p/6363962.html