Craig's Utility Library  4.0 Beta
Utilities.ORM.Manager.QueryProvider.Interfaces.IBatch Interface Reference

Batch interface, used to add commands and executes them More...

Inheritance diagram for Utilities.ORM.Manager.QueryProvider.Interfaces.IBatch:
Utilities.ORM.Manager.QueryProvider.Default.DatabaseBatch Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPBatch

Public Member Functions

IBatch AddCommand (Action< Command, IList< dynamic >> CallBack, object Object, CommandType CommandType, string Command)
 Adds a command to be batched More...
 
IBatch AddCommand (Action< Command, IList< dynamic >> CallBack, object Object, string Command, CommandType CommandType, params object[] Parameters)
 Adds a command to be batched More...
 
IBatch AddCommand (Action< Command, IList< dynamic >> CallBack, object Object, string Command, CommandType CommandType, params IParameter[] Parameters)
 Adds a command to be batched More...
 
IBatch AddCommand (IBatch Batch)
 Adds a batch's commands to the current batch More...
 
IList< IList< dynamic > > Execute ()
 Executes the commands and returns the results More...
 
IBatch RemoveDuplicateCommands ()
 Removes duplicate commands from the batch More...
 

Properties

int CommandCount [get]
 Number of commands being batched More...
 

Detailed Description

Batch interface, used to add commands and executes them

Definition at line 32 of file IBatch.cs.

Member Function Documentation

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IBatch.AddCommand ( Action< Command, IList< dynamic >>  CallBack,
object  Object,
CommandType  CommandType,
string  Command 
)

Adds a command to be batched

Parameters
CommandCommand (SQL or stored procedure) to run
CommandTypeCommand type
CallBackCallback action
ObjectObject used in the callback action
Returns
This

Implemented in Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPBatch, and Utilities.ORM.Manager.QueryProvider.Default.DatabaseBatch.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IBatch.AddCommand ( Action< Command, IList< dynamic >>  CallBack,
object  Object,
string  Command,
CommandType  CommandType,
params object[]  Parameters 
)

Adds a command to be batched

Parameters
CommandCommand (SQL or stored procedure) to run
CommandTypeCommand type
ParametersParameters to add
CallBackCallback action
ObjectObject used in the callback action
Returns
This

Implemented in Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPBatch, and Utilities.ORM.Manager.QueryProvider.Default.DatabaseBatch.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IBatch.AddCommand ( Action< Command, IList< dynamic >>  CallBack,
object  Object,
string  Command,
CommandType  CommandType,
params IParameter[]  Parameters 
)

Adds a command to be batched

Parameters
CommandCommand (SQL or stored procedure) to run
CommandTypeCommand type
ParametersParameters to add
CallBackCallback action
ObjectObject used in the callback action
Returns
This

Implemented in Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPBatch, and Utilities.ORM.Manager.QueryProvider.Default.DatabaseBatch.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IBatch.AddCommand ( IBatch  Batch)

Adds a batch's commands to the current batch

Parameters
BatchBatch to add
Returns
This

Implemented in Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPBatch, and Utilities.ORM.Manager.QueryProvider.Default.DatabaseBatch.

IList<IList<dynamic> > Utilities.ORM.Manager.QueryProvider.Interfaces.IBatch.Execute ( )

Executes the commands and returns the results

Returns
The results of the batched commands

Implemented in Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPBatch, and Utilities.ORM.Manager.QueryProvider.Default.DatabaseBatch.

IBatch Utilities.ORM.Manager.QueryProvider.Interfaces.IBatch.RemoveDuplicateCommands ( )

Removes duplicate commands from the batch

Returns
This

Implemented in Utilities.ORM.Manager.QueryProvider.Default.LDAP.LDAPBatch, and Utilities.ORM.Manager.QueryProvider.Default.DatabaseBatch.

Property Documentation

int Utilities.ORM.Manager.QueryProvider.Interfaces.IBatch.CommandCount
get

Number of commands being batched

Definition at line 37 of file IBatch.cs.


The documentation for this interface was generated from the following file: