Click or drag to resize

Mapper.InsertIfNotExists<T> Method (T, String, CqlQueryOptions)

Inserts the specified POCO in Cassandra, if not exists, with the provided execution profile.

Returns information whether it was applied or not. If it was not applied, it returns details of the existing values.

Namespace:  Cassandra.Mapping
Assembly:  Cassandra (in Cassandra.dll) Version: 3.10.0
Syntax
C#
public AppliedInfo<T> InsertIfNotExists<T>(
	T poco,
	string executionProfile,
	CqlQueryOptions queryOptions = null
)

Parameters

poco
Type: T
executionProfile
Type: System.String
queryOptions (Optional)
Type: Cassandra.Mapping.CqlQueryOptions

Type Parameters

T

Return Value

Type: AppliedInfo<T>

Implements

IMapper.InsertIfNotExists<T>(T, String, CqlQueryOptions)
See Also