Aerospike.Database.LINQPadDriver.Extensions Namespace
Aerospike LINDPad Driver

ANamespaceAccess..::..Truncate Method (InfoPolicy, Nullable<(Of <(<'DateTime>)>)>)

Truncates all the Sets in this namespace

Namespace:  Aerospike.Database.LINQPadDriver.Extensions
Assembly:  Aerospike.Database.LINQPadDriver (in Aerospike.Database.LINQPadDriver.dll)

Syntax


public void Truncate(
	InfoPolicy infoPolicy,
	Nullable<DateTime> before
)

Parameters

infoPolicy
Type: InfoPolicy
The InfoPolicy used for the truncate. If not provided, the default is used.
before
Type: Nullable<(Of <(<'DateTime>)>)>
A Date/time used to truncate the set. Records before this time will be truncated. The default is everything up to when this was executed (DateTime.Now).

Exceptions


ExceptionCondition
InvalidOperationExceptionThrown if the cluster is a production cluster. Can disable this by going into the connection properties.