Click or drag to resize

MapperInsertT Method (T, String, Boolean, NullableInt32, CqlQueryOptions)

Inserts the specified POCO in Cassandra using the provided execution profile.

Namespace:  Dse.Mapping
Assembly:  Dse (in Dse.dll) Version: 2.9.0
Syntax
C#
public void Insert<T>(
	T poco,
	string executionProfile,
	bool insertNulls,
	Nullable<int> ttl,
	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.

ttl
Type: SystemNullableInt32
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: Dse.MappingCqlQueryOptions
Optional query options

Type Parameters

T

Return Value

Type: 

Implements

IMapperInsertT(T, String, Boolean, NullableInt32, CqlQueryOptions)
See Also