IMapperInsertIfNotExistsT Method (T, String, Boolean, CqlQueryOptions) |
Inserts the specified POCO in Cassandra, if not exists, with the provided execution profile.
Namespace:
Cassandra.Mapping
Assembly:
Cassandra (in Cassandra.dll) Version: 3.11.0
Syntax AppliedInfo<T> InsertIfNotExists<T>(
T poco,
string executionProfile,
bool insertNulls,
CqlQueryOptions queryOptions = null
)
Parameters
- poco
- Type: T
The POCO instance - executionProfile
- Type: SystemString
The execution profile to use when executing the request. - insertNulls
- Type: SystemBoolean
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.
- queryOptions (Optional)
- Type: Cassandra.MappingCqlQueryOptions
Optional query options
Type Parameters
- T
Return Value
Type:
AppliedInfoTSee Also