Class AddStatement<T>
Represents a chaining collection insert statement.
Namespace: MySqlX.XDevAPI.CRUD
Assembly: MySql.Data.dll
Version: 9.1.0
Syntax
public class AddStatement<T> : CrudStatement<Result, T>
Type Parameters
Name | Description |
---|---|
T |
Methods
Add(Object[])
Adds documents to the collection.
Declaration
public AddStatement<T> Add(params object[] items)
Parameters
Type | Name | Description |
---|---|---|
System.Object[] | items | The documents to add. |
Returns
Type | Description |
---|---|
AddStatement<T> | This AddStatement<T> object. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
Execute()
Executes the Add statement.
Declaration
public override Result Execute()
Returns
Type | Description |
---|---|
Result | A Result object containing the results of the execution. |
Overrides
MySqlX.XDevAPI.Common.BaseStatement<MySqlX.XDevAPI.Common.Result, T>.Execute()