Click or drag to resize
IMapper.InsertIfNotExists<T> Method (T, Boolean, Nullable<Int32>, CqlQueryOptions)
Inserts the specified POCO in Cassandra, if not exists.

Namespace: Cassandra.Mapping
Assembly: Cassandra (in Cassandra.dll) Version: 3.0.5 (git 25b8d4e)
Syntax
C#
AppliedInfo<T> InsertIfNotExists<T>(
	T poco,
	bool insertNulls,
	Nullable<int> ttl,
	CqlQueryOptions queryOptions = null
)

Parameters

poco
Type: T
The POCO instance
insertNulls
Type: System.Boolean
Determines if the query must be generated using NULL values for null POCO members.

Use false if you don't want to consider null values for the INSERT operation (recommended).

Use true if you want to override all the values in the table, generating tombstones for null values.

ttl
Type: System.Nullable<Int32>
Time to live (in seconds) for the inserted values. If set, the inserted values are automatically removed from the database after the specified time.
queryOptions (Optional)
Type: Cassandra.Mapping.CqlQueryOptions
Optional query options

Type Parameters

T

Return Value

Type: AppliedInfo<T>
See Also