Click or drag to resize

SQLInserter.Execute Method (String, Int32, Boolean, ExecuteOptions)

Execute the SQL INSERT statement. Note that embedded functions are always resolved unless an executeOptions parameter is provided (without ResolveEmbedded set). Requires that the object was created with the SQLInserter(IDatabase, String) constructor.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public int Execute(
	string logSource = null,
	int commandTimeout = 30,
	bool noRowLockHints = false,
	ExecuteOptions executeOptions = ExecuteOptions.ResolveEmbedded
)

Parameters

logSource (Optional)
Type: System.String
The source of the operation, to be logged to the devlog.
commandTimeout (Optional)
Type: System.Int32
Override the default command timeout.
noRowLockHints (Optional)
Type: System.Boolean
If true, no ROWLOCK hints will be added to the statement.
executeOptions (Optional)
Type: NetQuarry.ExecuteOptions
Options to send to Execute(String, ExecuteOptions, String, String, String, Int32, Int32).

Return Value

Type: Int32
The IDENTITY value for the newly inserted record if one exists. Note that you must include the ReturnsIdentity execute option.
See Also