• DataStax C# Driver for Apache Cassandra API Documentation
Search Results for

    Show / Hide Table of Contents
    • Cassandra
      • AesColumnEncryptionPolicy
      • AesColumnEncryptionPolicy.AesKeyAndIV
      • AggregateMetadata
      • AlreadyExistsException
      • AtomicMonotonicTimestampGenerator
      • AtomicMonotonicWinApiTimestampGenerator
      • AuthenticationException
      • BaseColumnEncryptionPolicy<TKey>
      • BaseColumnEncryptionPolicy<TKey>.ColMetadataKey
      • BatchStatement
      • BatchType
      • BigIntegerTypeAdapter
      • BoundStatement
      • Builder
      • BusyPoolException
      • CassandraConnectionStringBuilder
      • ClientOptions
      • Cluster
      • ColumnDesc
      • ColumnEncryptionInvalidTypeError
      • ColumnEncryptionMetadata
      • ColumnTypeCode
      • CompressionType
      • Configuration
      • ConsistencyLevel
      • ConstantReconnectionPolicy
      • ConstantSpeculativeExecutionPolicy
      • CqlColumn
      • CustomColumnInfo
      • DataCollectionMetadata
      • DataCollectionMetadata.SortOrder
      • DCAwareRoundRobinPolicy
      • DecimalTypeAdapter
      • DefaultLoadBalancingPolicy
      • DefaultRetryPolicy
      • Diagnostics
      • DowngradingConsistencyRetryPolicy
      • DriverException
      • DriverInternalError
      • Duration
      • DynamicCompositeTypeAdapter
      • EC2MultiRegionTranslator
      • EncryptedValue
      • ExecutionException
      • ExecutionInfo
      • ExponentialReconnectionPolicy
      • Extensions
      • FallthroughRetryPolicy
      • FixedReconnectionPolicy
      • FunctionFailureException
      • FunctionMetadata
      • GraphProtocol
      • Host
      • HostDistance
      • HostsEventArgs
      • HostsEventArgs.Kind
      • HostsEventHandler
      • IAddressTranslator
      • IAuthenticator
      • IAuthProvider
      • IAuthProviderNamed
      • ICluster
      • IColumnEncryptionPolicy
      • IColumnInfo
      • IdempotenceAwareRetryPolicy
      • IExecutionProfile
      • IExecutionProfileBuilder
      • IExecutionProfileOptions
      • IExtendedRetryPolicy
      • IFrameCompressor
      • IInitializer
      • ILoadBalancingPolicy
      • IndexMetadata
      • IndexMetadata.IndexKind
      • InitFatalErrorException
      • InvalidConfigurationInQueryException
      • InvalidQueryException
      • InvalidTypeException
      • IReconnectionPolicy
      • IReconnectionSchedule
      • IRetryPolicy
      • IsBootstrappingException
      • ISession
      • ISessionState
      • ISpeculativeExecutionPlan
      • ISpeculativeExecutionPolicy
      • IStatement
      • ITimestampGenerator
      • ITypeAdapter
      • KeyspaceMetadata
      • KeyType
      • ListColumnInfo
      • LocalDate
      • LocalTime
      • Logger
      • LoggingRetryPolicy
      • MapColumnInfo
      • MaterializedViewMetadata
      • Metadata
      • MetadataSyncOptions
      • MetricsExtensions
      • MonitorReportingOptions
      • NoHostAvailableException
      • NoneAuthProvider
      • NoSpeculativeExecutionPolicy
      • NullTypeAdapter
      • OperationTimedOutException
      • OverloadedException
      • PlainTextAuthProvider
      • Policies
      • PoolingOptions
      • PreparedQueryNotFoundException
      • PreparedStatement
      • PreparedStatementIdMismatchException
      • ProtocolErrorException
      • ProtocolOptions
      • ProtocolVersion
      • QueryExecutionException
      • QueryOptions
      • QueryProtocolOptions
      • QueryProtocolOptions.QueryFlags
      • QueryTimeoutException
      • QueryTrace
      • QueryTrace.Event
      • QueryValidationException
      • ReadFailureException
      • ReadTimeoutException
      • RegularStatement
      • ReplicationStrategies
      • RequestInvalidException
      • RetryDecision
      • RetryDecision.RetryDecisionType
      • RetryLoadBalancingPolicy
      • RetryLoadBalancingPolicyEventArgs
      • RoundRobinPolicy
      • RoutingKey
      • Row
      • RowSet
      • RowSetMetadata
      • SchemaChangedEventArgs
      • SchemaChangedEventArgs.Kind
      • SchemaChangedEventHandler
      • ServerErrorException
      • Session
      • SetColumnInfo
      • SimpleStatement
      • SocketOptions
      • SSLOptions
      • Statement
      • SyntaxError
      • TableColumn
      • TableMetadata
      • TableOptions
      • TimeUuid
      • TokenAwarePolicy
      • ToManyConnectionsPerHost
      • TraceRetrievalException
      • TruncateException
      • TupleColumnInfo
      • TypeAdapters
      • UdtColumnInfo
      • UdtMap
      • UdtMap<T>
      • UdtMappingDefinitions
      • UnauthorizedException
      • UnavailableException
      • Unset
      • WriteFailureException
      • WriteTimeoutException
    • Cassandra.AppMetrics
      • DriverAppMetricsOptions
    • Cassandra.AppMetrics.MetricTypes
      • IAppMetricsCounter
      • IAppMetricsGauge
      • IAppMetricsMeter
      • IAppMetricsMetric
      • IAppMetricsTimer
    • Cassandra.AppMetrics.MetricValues
      • IAppMetricsHistogramValue
      • IAppMetricsMeterValue
      • IAppMetricsMetricWithValue<T>
      • IAppMetricsTimerValue
    • Cassandra.Data
      • CqlBatchTransaction
      • CqlCommand
      • CqlConnection
      • CqlDataAdapter
      • CqlParameter
      • CqlParameterCollection
      • CqlProviderFactory
      • CqlReader
    • Cassandra.Data.Linq
      • AllowFilteringAttribute
      • Batch
      • ClusteringKeyAttribute
      • ColumnAttribute
      • CompactStorageAttribute
      • CounterAttribute
      • CqlArgumentException
      • CqlCommand
      • CqlConditionalCommand<TEntity>
      • CqlDelete
      • CqlFunction
      • CqlInsert<TEntity>
      • CqlLinqNotSupportedException
      • CqlOperator
      • CqlQuery<TEntity>
      • CqlQueryBase<TEntity>
      • CqlQueryExtensions
      • CqlQuerySingleElement<TEntity>
      • CqlScalar<TEntity>
      • CqlToken
      • CqlUpdate
      • IgnoreAttribute
      • ITable
      • PartitionKeyAttribute
      • SecondaryIndexAttribute
      • SessionExtensions
      • StaticColumnAttribute
      • Table<TEntity>
      • TableAttribute
      • TableType
    • Cassandra.DataStax.Auth
      • DseGssapiAuthProvider
      • DsePlainTextAuthProvider
    • Cassandra.DataStax.Auth.Sspi
      • SspiException
    • Cassandra.DataStax.Graph
      • Direction
      • Edge
      • Element
      • ElementMap
      • EnumWrapper
      • FluentGraphStatement
      • GraphNode
      • GraphOptions
      • GraphResultSet
      • GraphStatement
      • IEdge
      • IElement
      • IGraphNode
      • IGraphStatement
      • IPath
      • IProperty
      • IPropertyWithElement
      • IVertex
      • IVertexProperty
      • Path
      • SimpleGraphStatement
      • TEnum
      • Traverser
      • Vertex
    • Cassandra.DataStax.Graph.Internal
      • IGraphSONDeserializer
      • IGraphSONReader
      • IGraphSONSerializer
      • IGraphSONWriter
    • Cassandra.DataStax.Search
      • DateRange
      • DateRangeBound
      • DateRangePrecision
    • Cassandra.Geometry
      • GeometryBase
      • LineString
      • Point
      • Polygon
    • Cassandra.Mapping
      • AppliedInfo<T>
      • ColumnMap
      • Cql
      • CqlQueryOptions
      • IColumnDefinition
      • ICqlBatch
      • ICqlQueryAsyncClient
      • ICqlQueryClient
      • ICqlWriteAsyncClient
      • ICqlWriteClient
      • IMapper
      • IPage<T>
      • ITypeDefinition
      • Map<TPoco>
      • Mapper
      • MappingConfiguration
      • Mappings
      • PrimaryKeyAttribute
      • SortOrder
      • TableNameAttribute
    • Cassandra.Mapping.Attributes
      • ClusteringKeyAttribute
      • ColumnAttribute
      • CounterAttribute
      • FrozenAttribute
      • FrozenKeyAttribute
      • FrozenValueAttribute
      • IgnoreAttribute
      • PartitionKeyAttribute
      • SecondaryIndexAttribute
      • StaticColumnAttribute
      • TableAttribute
    • Cassandra.Mapping.TypeConversion
      • DefaultTypeConverter
      • EnumStringMapper<T>
      • NullableEnumStringMapper<T>
      • TypeConverter
    • Cassandra.Mapping.Utils
      • MemberInfoExtensions
    • Cassandra.Metrics
      • DriverMetricsOptions
      • IDriverMetrics
      • IMetric
      • IMetricsRegistry<TMetric>
      • NodeMetric
      • NodeMetric.Counters
      • NodeMetric.Gauges
      • NodeMetric.Meters
      • NodeMetric.Timers
      • SessionMetric
      • SessionMetric.Counters
      • SessionMetric.Gauges
      • SessionMetric.Meters
      • SessionMetric.Timers
    • Cassandra.Metrics.Abstractions
      • IDriverCounter
      • IDriverGauge
      • IDriverMeter
      • IDriverMetric
      • IDriverMetricsProvider
      • IDriverTimer
    • Cassandra.Serialization
      • CustomTypeSerializer<T>
      • TypeSerializer
      • TypeSerializer<T>
      • TypeSerializerDefinitions
      • UdtSerializer
    • Cassandra.Serialization.Primitive
      • DecimalSerializer

    Class Mapper

    The default CQL client implementation which uses the DataStax driver ISession provided in the constructor for running queries against a Cassandra cluster.

    Inheritance
    object
    Mapper
    Implements
    IMapper
    ICqlQueryAsyncClient
    ICqlWriteAsyncClient
    ICqlQueryClient
    ICqlWriteClient
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Cassandra.Mapping
    Assembly: Cassandra.dll
    Syntax
    public class Mapper : IMapper, ICqlQueryAsyncClient, ICqlWriteAsyncClient, ICqlQueryClient, ICqlWriteClient

    Constructors

    Mapper(ISession, MappingConfiguration)

    Creates a new instance of the mapper using the configuration provided

    Declaration
    public Mapper(ISession session, MappingConfiguration config)
    Parameters
    Type Name Description
    ISession session

    Session to be used to execute the statements

    MappingConfiguration config

    Mapping definitions for the POCOs

    See Also
    IMapper

    Mapper(ISession)

    Creates a new instance of the mapper using Global mapping definitions.

    Declaration
    public Mapper(ISession session)
    Parameters
    Type Name Description
    ISession session
    See Also
    IMapper

    Methods

    ConvertCqlArgument<TValue, TDatabase>(TValue)

    Declaration
    public TDatabase ConvertCqlArgument<TValue, TDatabase>(TValue value)
    Parameters
    Type Name Description
    TValue value
    Returns
    Type Description
    TDatabase
    Type Parameters
    Name Description
    TValue
    TDatabase
    See Also
    IMapper

    CreateBatch()

    Creates a new batch.

    To set the consistency level, timestamp and other batch options, use WithOptions(Action<CqlQueryOptions>). Individual options for each query within the batch will be ignored.

    Declaration
    public ICqlBatch CreateBatch()
    Returns
    Type Description
    ICqlBatch
    See Also
    IMapper

    CreateBatch(BatchType)

    Creates a new batch.

    To set the consistency level, timestamp and other batch options, use WithOptions(Action<CqlQueryOptions>). Individual options for each query within the batch will be ignored.

    Declaration
    public ICqlBatch CreateBatch(BatchType batchType)
    Parameters
    Type Name Description
    BatchType batchType
    Returns
    Type Description
    ICqlBatch
    See Also
    IMapper

    Delete<T>(T, CqlQueryOptions)

    Deletes the specified POCO from Cassandra.

    Declaration
    public void Delete<T>(T poco, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    CqlQueryOptions queryOptions
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Delete<T>(T, string, CqlQueryOptions)

    Deletes the specified POCO from Cassandra using the provided execution profile.

    Declaration
    public void Delete<T>(T poco, string executionProfile, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    string executionProfile
    CqlQueryOptions queryOptions
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Delete<T>(Cql)

    Deletes from the table for the POCO type specified (T) using the CQL string specified. Prepends "DELETE FROM tablename " to the CQL statement you specify, getting the tablename appropriately from the POCO Type T.

    Declaration
    public void Delete<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Delete<T>(string, params object[])

    Deletes from the table for the POCO type specified (T) using the CQL string and bind variable values specified. Prepends "DELETE FROM tablname " to the CQL string you specify, getting the tablename appropriately from the POCO Type T.

    Declaration
    public void Delete<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    DeleteAsync<T>(T, CqlQueryOptions)

    Deletes the specified POCO from Cassandra.

    Declaration
    public Task DeleteAsync<T>(T poco, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    CqlQueryOptions queryOptions
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    DeleteAsync<T>(T, string, CqlQueryOptions)

    Deletes the specified POCO from Cassandra using the provided execution profile.

    Declaration
    public Task DeleteAsync<T>(T poco, string executionProfile, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    string executionProfile
    CqlQueryOptions queryOptions
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    DeleteAsync<T>(Cql)

    Deletes from the table for the POCO type specified (T) using the CQL statement specified. Prepends "DELETE FROM tablename " to the CQL statement you specify, getting the tablename appropriately from the POCO Type T.

    Declaration
    public Task DeleteAsync<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    DeleteAsync<T>(string, params object[])

    Deletes from the table for the POCO type specified (T) using the CQL string and bind variable values specified. Prepends "DELETE FROM tablname " to the CQL string you specify, getting the tablename appropriately from the POCO Type T.

    Declaration
    public Task DeleteAsync<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    DeleteIf<T>(Cql)

    Deletes from the table for the POCO type specified (T) using the Cql query specified.
    Prepends "DELETE FROM tablename " to the CQL statement you specify, getting the tablename appropriately from the POCO Type T.

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

    Declaration
    public AppliedInfo<T> DeleteIf<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    AppliedInfo<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    DeleteIf<T>(string, params object[])

    Deletes from the table for the POCO type specified (T) using the CQL string specified and query parameters specified.
    Prepends "DELETE FROM tablename " to the CQL statement you specify, getting the tablename appropriately from the POCO Type T.

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

    Declaration
    public AppliedInfo<T> DeleteIf<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    AppliedInfo<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    DeleteIfAsync<T>(Cql)

    Deletes from the table for the POCO type specified (T) using the Cql query specified.
    Prepends "DELETE FROM tablename " to the CQL statement you specify, getting the tablename appropriately from the POCO Type T.

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

    Declaration
    public Task<AppliedInfo<T>> DeleteIfAsync<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    Task<AppliedInfo<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    DeleteIfAsync<T>(string, params object[])

    Deletes from the table for the POCO type specified (T) using the CQL string specified and query parameters specified.
    Prepends "DELETE FROM tablename " to the CQL statement you specify, getting the tablename appropriately from the POCO Type T.

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

    Declaration
    public Task<AppliedInfo<T>> DeleteIfAsync<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    Task<AppliedInfo<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Execute(Cql)

    Executes the arbitrary CQL statement specified.

    Declaration
    public void Execute(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    See Also
    IMapper

    Execute(ICqlBatch, string)

    Executes the batch specified synchronously with the provided execution profile.

    Declaration
    public void Execute(ICqlBatch batch, string executionProfile)
    Parameters
    Type Name Description
    ICqlBatch batch
    string executionProfile
    Remarks

    To set the consistency level, timestamp and other batch options, use WithOptions(Action<CqlQueryOptions>). Individual options for each query within the batch will be ignored.

    See Also
    IMapper

    Execute(ICqlBatch)

    Executes the batch specfied synchronously.

    Declaration
    public void Execute(ICqlBatch batch)
    Parameters
    Type Name Description
    ICqlBatch batch
    Remarks

    To set the consistency level, timestamp and other batch options, use WithOptions(Action<CqlQueryOptions>). Individual options for each query within the batch will be ignored.

    See Also
    IMapper

    Execute(string, params object[])

    Executes an arbitrary CQL string with the bind variable values specified.

    Declaration
    public void Execute(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    See Also
    IMapper

    ExecuteAsync(Cql)

    Executes an arbitrary CQL statement.

    Declaration
    public Task ExecuteAsync(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    Task
    See Also
    IMapper

    ExecuteAsync(ICqlBatch, string)

    Executes the batch specified asynchronously with the provided execution profile.

    Declaration
    public Task ExecuteAsync(ICqlBatch batch, string executionProfile)
    Parameters
    Type Name Description
    ICqlBatch batch
    string executionProfile
    Returns
    Type Description
    Task
    Remarks

    To set the consistency level, timestamp and other batch options, use WithOptions(Action<CqlQueryOptions>). Individual options for each query within the batch will be ignored.

    See Also
    IMapper

    ExecuteAsync(ICqlBatch)

    Executes the batch specified asynchronously.

    Declaration
    public Task ExecuteAsync(ICqlBatch batch)
    Parameters
    Type Name Description
    ICqlBatch batch
    Returns
    Type Description
    Task
    Remarks

    To set the consistency level, timestamp and other batch options, use WithOptions(Action<CqlQueryOptions>). Individual options for each query within the batch will be ignored.

    See Also
    IMapper

    ExecuteAsync(string, params object[])

    Executes an arbitrary CQL string with the bind variable values specified.

    Declaration
    public Task ExecuteAsync(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    Task
    See Also
    IMapper

    ExecuteConditional<T>(ICqlBatch, string)

    Executes a batch that contains a Lightweight transaction.

    Declaration
    public AppliedInfo<T> ExecuteConditional<T>(ICqlBatch batch, string executionProfile)
    Parameters
    Type Name Description
    ICqlBatch batch
    string executionProfile
    Returns
    Type Description
    AppliedInfo<T>
    Type Parameters
    Name Description
    T
    Remarks

    To set the consistency level, timestamp and other batch options, use WithOptions(Action<CqlQueryOptions>). Individual options for each query within the batch will be ignored.

    See Also
    IMapper

    ExecuteConditional<T>(ICqlBatch)

    Executes a batch that contains a Lightweight transaction.

    Declaration
    public AppliedInfo<T> ExecuteConditional<T>(ICqlBatch batch)
    Parameters
    Type Name Description
    ICqlBatch batch
    Returns
    Type Description
    AppliedInfo<T>
    Type Parameters
    Name Description
    T
    Remarks

    To set the consistency level, timestamp and other batch options, use WithOptions(Action<CqlQueryOptions>). Individual options for each query within the batch will be ignored.

    See Also
    IMapper

    ExecuteConditionalAsync<T>(ICqlBatch, string)

    Executes a batch that contains a Lightweight transaction with the provided execution profile.

    Declaration
    public Task<AppliedInfo<T>> ExecuteConditionalAsync<T>(ICqlBatch batch, string executionProfile)
    Parameters
    Type Name Description
    ICqlBatch batch
    string executionProfile
    Returns
    Type Description
    Task<AppliedInfo<T>>
    Type Parameters
    Name Description
    T
    Remarks

    To set the consistency level, timestamp and other batch options, use WithOptions(Action<CqlQueryOptions>). Individual options for each query within the batch will be ignored.

    See Also
    IMapper

    ExecuteConditionalAsync<T>(ICqlBatch)

    Executes a batch that contains a Lightweight transaction.

    Declaration
    public Task<AppliedInfo<T>> ExecuteConditionalAsync<T>(ICqlBatch batch)
    Parameters
    Type Name Description
    ICqlBatch batch
    Returns
    Type Description
    Task<AppliedInfo<T>>
    Type Parameters
    Name Description
    T
    Remarks

    To set the consistency level, timestamp and other batch options, use WithOptions(Action<CqlQueryOptions>). Individual options for each query within the batch will be ignored.

    See Also
    IMapper

    Fetch<T>(Cql)

    Gets a list of T from Cassandra using the CQL statement specified.

    Declaration
    public IEnumerable<T> Fetch<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    IEnumerable<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Fetch<T>(CqlQueryOptions)

    Gets a list of all T from Cassandra.

    Declaration
    public IEnumerable<T> Fetch<T>(CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    CqlQueryOptions queryOptions
    Returns
    Type Description
    IEnumerable<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Fetch<T>(string, params object[])

    Gets a list of T from Cassandra using the CQL statement and parameter values specified.

    Declaration
    public IEnumerable<T> Fetch<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    IEnumerable<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FetchAsync<T>(Cql)

    Gets a list of T from Cassandra using the CQL statement specified.

    Declaration
    public Task<IEnumerable<T>> FetchAsync<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    Task<IEnumerable<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FetchAsync<T>(CqlQueryOptions)

    Gets a list of all T from Cassandra.

    Declaration
    public Task<IEnumerable<T>> FetchAsync<T>(CqlQueryOptions options = null)
    Parameters
    Type Name Description
    CqlQueryOptions options
    Returns
    Type Description
    Task<IEnumerable<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FetchAsync<T>(string, params object[])

    Gets a list of T from Cassandra using the CQL statement and parameter values specified.

    Declaration
    public Task<IEnumerable<T>> FetchAsync<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    Task<IEnumerable<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FetchPage<T>(Cql)

    Gets a paged list of T results from Cassandra. Suitable for manually page through all the results of a query.

    Declaration
    public IPage<T> FetchPage<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    IPage<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FetchPage<T>(CqlQueryOptions)

    Gets a paged list of T results from Cassandra using the CQL statement specified. Suitable for manually page through all the results of a query.

    Declaration
    public IPage<T> FetchPage<T>(CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    CqlQueryOptions queryOptions
    Returns
    Type Description
    IPage<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FetchPage<T>(int, byte[], string, params object[])

    Gets a paged list of T results from Cassandra. Suitable for manually page through all the results of a query.

    Declaration
    public IPage<T> FetchPage<T>(int pageSize, byte[] pagingState, string cql, params object[] args)
    Parameters
    Type Name Description
    int pageSize

    Amount of items to return

    byte[] pagingState

    The token representing the state of the result page. To get the first page, use a null value.

    string cql
    object[] args

    Query parameters

    Returns
    Type Description
    IPage<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FetchPageAsync<T>(Cql)

    Gets a paged list of T results from Cassandra. Suitable for manually page through all the results of a query.

    Declaration
    public Task<IPage<T>> FetchPageAsync<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    Task<IPage<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FetchPageAsync<T>(CqlQueryOptions)

    Gets a paged list of T results from Cassandra using the CQL statement specified. Suitable for manually page through all the results of a query.

    Declaration
    public Task<IPage<T>> FetchPageAsync<T>(CqlQueryOptions options = null)
    Parameters
    Type Name Description
    CqlQueryOptions options
    Returns
    Type Description
    Task<IPage<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FetchPageAsync<T>(int, byte[], string, object[])

    Gets a paged list of T results from Cassandra. Suitable for manually page through all the results of a query.

    Declaration
    public Task<IPage<T>> FetchPageAsync<T>(int pageSize, byte[] pagingState, string query, object[] args)
    Parameters
    Type Name Description
    int pageSize

    Amount of items to return

    byte[] pagingState

    The token representing the state of the result page. To get the first page, use a null value.

    string query

    Cql query

    object[] args

    Query parameters

    Returns
    Type Description
    Task<IPage<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    First<T>(Cql)

    Gets the first T from Cassandra using the CQL statement specified. Will throw if no records are returned.

    Declaration
    public T First<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    First<T>(string, params object[])

    Gets the first T from Cassandra using the CQL statement and parameter values specified. Will throw if no records are returned.

    Declaration
    public T First<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FirstAsync<T>(Cql)

    Gets the first T from Cassandra using the CQL specified. Will throw if no records are returned.

    Declaration
    public Task<T> FirstAsync<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FirstAsync<T>(string, params object[])

    Gets the first T from Cassandra using the CQL statement and parameter values specified. Will throw if no records are returned.

    Declaration
    public Task<T> FirstAsync<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FirstOrDefault<T>(Cql)

    Gets the first T from Cassandra using the CQL statement specified. Will return the default value of T if no records are found.

    Declaration
    public T FirstOrDefault<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FirstOrDefault<T>(string, params object[])

    Gets the first T from Cassandra using the CQL statement and parameter values specified. Will return the default value of T is no records are found.

    Declaration
    public T FirstOrDefault<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FirstOrDefaultAsync<T>(Cql)

    Gets the first T from Cassandra using the CQL specified. Will return the default value of T if no records are found.

    Declaration
    public Task<T> FirstOrDefaultAsync<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    FirstOrDefaultAsync<T>(string, params object[])

    Gets the first T from Cassandra using the CQL statement and parameter values specified. Will return the default value of T is no records are found.

    Declaration
    public Task<T> FirstOrDefaultAsync<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Insert<T>(T, CqlQueryOptions)

    Inserts the specified POCO in Cassandra.

    Declaration
    public void Insert<T>(T poco, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    CqlQueryOptions queryOptions
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Insert<T>(T, bool, CqlQueryOptions)

    Inserts the specified POCO in Cassandra.

    Declaration
    public void Insert<T>(T poco, bool insertNulls, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    bool insertNulls

    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.

    CqlQueryOptions queryOptions

    Optional query options

    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Insert<T>(T, bool, int?, CqlQueryOptions)

    Inserts the specified POCO in Cassandra.

    Declaration
    public void Insert<T>(T poco, bool insertNulls, int? ttl, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    bool insertNulls

    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.

    int? ttl

    Time to live (in seconds) for the inserted values. If set, the inserted values are automatically removed from the database after the specified time.

    CqlQueryOptions queryOptions

    Optional query options

    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Insert<T>(T, string, CqlQueryOptions)

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

    Declaration
    public void Insert<T>(T poco, string executionProfile, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    string executionProfile
    CqlQueryOptions queryOptions
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Insert<T>(T, string, bool, CqlQueryOptions)

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

    Declaration
    public void Insert<T>(T poco, string executionProfile, bool insertNulls, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    string executionProfile

    The execution profile to use when executing the request.

    bool insertNulls

    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.

    CqlQueryOptions queryOptions

    Optional query options

    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Insert<T>(T, string, bool, int?, CqlQueryOptions)

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

    Declaration
    public void Insert<T>(T poco, string executionProfile, bool insertNulls, int? ttl, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    string executionProfile

    The execution profile to use when executing the request.

    bool insertNulls

    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.

    int? ttl

    Time to live (in seconds) for the inserted values. If set, the inserted values are automatically removed from the database after the specified time.

    CqlQueryOptions queryOptions

    Optional query options

    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertAsync<T>(T, CqlQueryOptions)

    Inserts the specified POCO in Cassandra.

    Declaration
    public Task InsertAsync<T>(T poco, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    CqlQueryOptions queryOptions
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertAsync<T>(T, bool, CqlQueryOptions)

    Inserts the specified POCO in Cassandra.

    Declaration
    public Task InsertAsync<T>(T poco, bool insertNulls, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    bool insertNulls

    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.

    CqlQueryOptions queryOptions

    Optional query options

    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertAsync<T>(T, bool, int?, CqlQueryOptions)

    Inserts the specified POCO in Cassandra.

    Declaration
    public Task InsertAsync<T>(T poco, bool insertNulls, int? ttl, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    bool insertNulls

    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.

    int? ttl

    Time to live (in seconds) for the inserted values. If set, the inserted values are automatically removed from the database after the specified time.

    CqlQueryOptions queryOptions

    Optional query options

    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertAsync<T>(T, string, CqlQueryOptions)

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

    Declaration
    public Task InsertAsync<T>(T poco, string executionProfile, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    string executionProfile
    CqlQueryOptions queryOptions
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertAsync<T>(T, string, bool, CqlQueryOptions)

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

    Declaration
    public Task InsertAsync<T>(T poco, string executionProfile, bool insertNulls, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    string executionProfile

    The execution profile to use when executing the request.

    bool insertNulls

    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.

    CqlQueryOptions queryOptions

    Optional query options

    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertAsync<T>(T, string, bool, int?, CqlQueryOptions)

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

    Declaration
    public Task InsertAsync<T>(T poco, string executionProfile, bool insertNulls, int? ttl, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    string executionProfile

    The execution profile to use when executing the request.

    bool insertNulls

    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.

    int? ttl

    Time to live (in seconds) for the inserted values. If set, the inserted values are automatically removed from the database after the specified time.

    CqlQueryOptions queryOptions

    Optional query options

    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertIfNotExists<T>(T, CqlQueryOptions)

    Inserts the specified POCO in Cassandra, if not exists.

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

    Declaration
    public AppliedInfo<T> InsertIfNotExists<T>(T poco, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    CqlQueryOptions queryOptions
    Returns
    Type Description
    AppliedInfo<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertIfNotExists<T>(T, bool, CqlQueryOptions)

    Inserts the specified POCO in Cassandra, if not exists.

    Declaration
    public AppliedInfo<T> InsertIfNotExists<T>(T poco, bool insertNulls, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    bool insertNulls

    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.

    CqlQueryOptions queryOptions

    Optional query options

    Returns
    Type Description
    AppliedInfo<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertIfNotExists<T>(T, bool, int?, CqlQueryOptions)

    Inserts the specified POCO in Cassandra, if not exists.

    Declaration
    public AppliedInfo<T> InsertIfNotExists<T>(T poco, bool insertNulls, int? ttl, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    bool insertNulls

    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.

    int? ttl

    Time to live (in seconds) for the inserted values. If set, the inserted values are automatically removed from the database after the specified time.

    CqlQueryOptions queryOptions

    Optional query options

    Returns
    Type Description
    AppliedInfo<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertIfNotExists<T>(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.

    Declaration
    public AppliedInfo<T> InsertIfNotExists<T>(T poco, string executionProfile, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    string executionProfile
    CqlQueryOptions queryOptions
    Returns
    Type Description
    AppliedInfo<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertIfNotExists<T>(T, string, bool, CqlQueryOptions)

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

    Declaration
    public AppliedInfo<T> InsertIfNotExists<T>(T poco, string executionProfile, bool insertNulls, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    string executionProfile

    The execution profile to use when executing the request.

    bool insertNulls

    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.

    CqlQueryOptions queryOptions

    Optional query options

    Returns
    Type Description
    AppliedInfo<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertIfNotExists<T>(T, string, bool, int?, CqlQueryOptions)

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

    Declaration
    public AppliedInfo<T> InsertIfNotExists<T>(T poco, string executionProfile, bool insertNulls, int? ttl, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    string executionProfile

    The execution profile to use when executing the request.

    bool insertNulls

    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.

    int? ttl

    Time to live (in seconds) for the inserted values. If set, the inserted values are automatically removed from the database after the specified time.

    CqlQueryOptions queryOptions

    Optional query options

    Returns
    Type Description
    AppliedInfo<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertIfNotExistsAsync<T>(T, CqlQueryOptions)

    Inserts the specified POCO in Cassandra, if not exists.

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

    Declaration
    public Task<AppliedInfo<T>> InsertIfNotExistsAsync<T>(T poco, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    CqlQueryOptions queryOptions
    Returns
    Type Description
    Task<AppliedInfo<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertIfNotExistsAsync<T>(T, bool, CqlQueryOptions)

    Inserts the specified POCO in Cassandra, if not exists.

    Declaration
    public Task<AppliedInfo<T>> InsertIfNotExistsAsync<T>(T poco, bool insertNulls, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    bool insertNulls

    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.

    CqlQueryOptions queryOptions

    Optional query options

    Returns
    Type Description
    Task<AppliedInfo<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertIfNotExistsAsync<T>(T, bool, int?, CqlQueryOptions)

    Inserts the specified POCO in Cassandra, if not exists.

    Declaration
    public Task<AppliedInfo<T>> InsertIfNotExistsAsync<T>(T poco, bool insertNulls, int? ttl, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    bool insertNulls

    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.

    int? ttl

    Time to live (in seconds) for the inserted values. If set, the inserted values are automatically removed from the database after the specified time.

    CqlQueryOptions queryOptions

    Optional query options

    Returns
    Type Description
    Task<AppliedInfo<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertIfNotExistsAsync<T>(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.

    Declaration
    public Task<AppliedInfo<T>> InsertIfNotExistsAsync<T>(T poco, string executionProfile, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    string executionProfile
    CqlQueryOptions queryOptions
    Returns
    Type Description
    Task<AppliedInfo<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertIfNotExistsAsync<T>(T, string, bool, CqlQueryOptions)

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

    Declaration
    public Task<AppliedInfo<T>> InsertIfNotExistsAsync<T>(T poco, string executionProfile, bool insertNulls, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    string executionProfile

    The execution profile to use when executing the request.

    bool insertNulls

    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.

    CqlQueryOptions queryOptions

    Optional query options

    Returns
    Type Description
    Task<AppliedInfo<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    InsertIfNotExistsAsync<T>(T, string, bool, int?, CqlQueryOptions)

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

    Declaration
    public Task<AppliedInfo<T>> InsertIfNotExistsAsync<T>(T poco, string executionProfile, bool insertNulls, int? ttl, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco

    The POCO instance

    string executionProfile

    The execution profile to use when executing the request.

    bool insertNulls

    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.

    int? ttl

    Time to live (in seconds) for the inserted values. If set, the inserted values are automatically removed from the database after the specified time.

    CqlQueryOptions queryOptions

    Optional query options

    Returns
    Type Description
    Task<AppliedInfo<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Single<T>(Cql)

    Gets a single T from Cassandra using the CQL statement specified. Will throw if no records or more than one record is returned.

    Declaration
    public T Single<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Single<T>(string, params object[])

    Gets a single T from Cassandra using the CQL statement and parameter values specified. Will throw if no records or more than one record is returned.

    Declaration
    public T Single<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    SingleAsync<T>(Cql)

    Gets a single T from Cassandra using the CQL statement specified. Will throw if no records or more than one record is returned.

    Declaration
    public Task<T> SingleAsync<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    SingleAsync<T>(string, params object[])

    Gets a single T from Cassandra using the CQL statement and parameter values specified. Will throw if no records or more than one record is returned.

    Declaration
    public Task<T> SingleAsync<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    SingleOrDefault<T>(Cql)

    Gets a single T from Cassandra using the CQL statement specified. Will return the default value of T if no records are found. Will throw if more than one record is returned.

    Declaration
    public T SingleOrDefault<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    SingleOrDefault<T>(string, params object[])

    Gets a single T from Cassandra using the CQL statement and parameter values specified. Will return the default value of T if no records are found. Will throw if more than one record is returned.

    Declaration
    public T SingleOrDefault<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    SingleOrDefaultAsync<T>(Cql)

    Gets a single T from Cassandra using the CQL statement specified. Will return the default value of T if no records are found. Will throw if more than one record is returned.

    Declaration
    public Task<T> SingleOrDefaultAsync<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    SingleOrDefaultAsync<T>(string, params object[])

    Gets a single T from Cassandra using the CQL statement and parameter values specified. Will return the default value of T if no records are found. Will throw if more than one record is returned.

    Declaration
    public Task<T> SingleOrDefaultAsync<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Update<T>(T, CqlQueryOptions)

    Updates the POCO specified in Cassandra.

    Declaration
    public void Update<T>(T poco, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    CqlQueryOptions queryOptions
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Update<T>(T, string, CqlQueryOptions)

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

    Declaration
    public void Update<T>(T poco, string executionProfile, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    string executionProfile
    CqlQueryOptions queryOptions
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Update<T>(Cql)

    Updates the table for the POCO type specified (T) using the CQL statement specified. Prepends "UPDATE tablename" to the CQL statement you specify, getting the tablename appropriately from the POCO Type T.

    Declaration
    public void Update<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Update<T>(string, params object[])

    Updates the table for the POCO type specified (T) using the CQL string and bind variable values specified. Prepends "UPDATE tablename " to the CQL string you specify, getting the tablename appropriately from the POCO Type T.

    Declaration
    public void Update<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Type Parameters
    Name Description
    T

    The POCO Type being updated.

    See Also
    IMapper

    UpdateAsync<T>(T, CqlQueryOptions)

    Updates the POCO specified in Cassandra.

    Declaration
    public Task UpdateAsync<T>(T poco, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    CqlQueryOptions queryOptions
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    UpdateAsync<T>(T, string, CqlQueryOptions)

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

    Declaration
    public Task UpdateAsync<T>(T poco, string executionProfile, CqlQueryOptions queryOptions = null)
    Parameters
    Type Name Description
    T poco
    string executionProfile
    CqlQueryOptions queryOptions
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    UpdateAsync<T>(Cql)

    Updates the table for the poco type specified (T) using the CQL statement specified. Prepends "UPDATE tablename" to the CQL statement you specify, getting the tablename appropriately from the POCO Type T.

    Declaration
    public Task UpdateAsync<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    UpdateAsync<T>(string, params object[])

    Updates the table for the POCO type specified (T) using the CQL string and bind variable values specified. Prepends "UPDATE tablename " to the CQL string you specify, getting the tablename appropriately from the POCO Type T.

    Declaration
    public Task UpdateAsync<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    Task
    Type Parameters
    Name Description
    T

    The POCO Type being updated.

    See Also
    IMapper

    UpdateIf<T>(Cql)

    Updates the table for the poco type specified (T) using the CQL statement specified, using lightweight transactions. Prepends "UPDATE tablename" to the CQL statement you specify, getting the table name appropriately from the POCO Type T.

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

    Declaration
    public AppliedInfo<T> UpdateIf<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    AppliedInfo<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    UpdateIf<T>(string, params object[])

    Updates the table for the poco type specified (T) using the CQL statement specified, using lightweight transactions. Prepends "UPDATE tablename" to the CQL statement you specify, getting the table name appropriately from the POCO Type T.

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

    Declaration
    public AppliedInfo<T> UpdateIf<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    AppliedInfo<T>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    UpdateIfAsync<T>(Cql)

    Updates the table for the poco type specified (T) using the CQL statement specified, using lightweight transactions. Prepends "UPDATE tablename" to the CQL statement you specify, getting the table name appropriately from the POCO Type T.

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

    Declaration
    public Task<AppliedInfo<T>> UpdateIfAsync<T>(Cql cql)
    Parameters
    Type Name Description
    Cql cql
    Returns
    Type Description
    Task<AppliedInfo<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    UpdateIfAsync<T>(string, params object[])

    Updates the table for the poco type specified (T) using the CQL statement specified, using lightweight transactions. Prepends "UPDATE tablename" to the CQL statement you specify, getting the table name appropriately from the POCO Type T.

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

    Declaration
    public Task<AppliedInfo<T>> UpdateIfAsync<T>(string cql, params object[] args)
    Parameters
    Type Name Description
    string cql
    object[] args
    Returns
    Type Description
    Task<AppliedInfo<T>>
    Type Parameters
    Name Description
    T
    See Also
    IMapper

    Implements

    IMapper
    ICqlQueryAsyncClient
    ICqlWriteAsyncClient
    ICqlQueryClient
    ICqlWriteClient

    See Also

    IMapper
    Back to top © DataStax, All rights reserved.