MySql.Data.Entity.UpdateGenerator.GenerateReturningSql C# (CSharp) Method

GenerateReturningSql() protected method

protected GenerateReturningSql ( System.Data.Common.CommandTrees.DbModificationCommandTree tree, DbExpression returning ) : SelectStatement
tree System.Data.Common.CommandTrees.DbModificationCommandTree
returning DbExpression
return SelectStatement
    protected override SelectStatement GenerateReturningSql(DbModificationCommandTree tree, DbExpression returning)
    {
      SelectStatement select = base.GenerateReturningSql(tree, returning);
      ListFragment where = new ListFragment();
      where.Append(" row_count() > 0 and ");
      where.Append( ((System.Data.Common.CommandTrees.DbUpdateCommandTree)tree).Predicate.Accept(this) );
      select.Where = where;

      return select;
    }