// public bool DeleteById(Int32 id) { StringBuilder strSql = new StringBuilder(); strSql.Append("delete from [Person] "); strSql.Append("where id=@id "); // var flag = DbHelperSql.Delete(strSql.ToString(), new Person { Id = id }); return(flag); }
// public bool DeleteById(Int32 userId) { StringBuilder strSql = new StringBuilder(); strSql.Append("delete from [User] "); strSql.Append("where UserId=@userId "); // var flag = DbHelperSql.Delete(strSql.ToString(), new User { UserId = userId }); return(flag); }