Show / Hide Table of Contents

Class CqlValueConverter

Provides methods to convert from database objects to .net types.

Inheritance
System.Object
ValueConverterBase
CqlValueConverter
Implements
IValueConverter
Inherited Members
ValueConverterBase.ConvertTo<T>(Object)
Namespace: Paradigm.ORM.Data.Cassandra.Converters
Assembly: Paradigm.ORM.Data.Cassandra.dll
Syntax
public class CqlValueConverter : ValueConverterBase, IValueConverter

Methods

| Improve this Doc View Source

ConvertFrom(Object, String)

Converts from a .net type to a database type.

Declaration
public override object ConvertFrom(object value, string dbType)
Parameters
Type Name Description
System.Object value

The value.

System.String dbType

The type.

Returns
Type Description
System.Object

Converted value.

| Improve this Doc View Source

ConvertTo(Object, Type)

Converts an object to a given .net type.

Declaration
public override object ConvertTo(object value, Type type)
Parameters
Type Name Description
System.Object value

The value to convert.

Type type

The type to convert to.

Returns
Type Description
System.Object

A value of the specified type.

Remarks

This method only works for native type codes.

Implements

IValueConverter

Extension Methods

ObjectExtensions.ThrowIfFails<TException>(Object, Action, String)
ObjectExtensions.ThrowIfFails<TException, TResult>(Object, Func<TResult>, String)
ObjectExtensions.ThrowIfFailsAsync<TException>(Object, Func<Task>, String)
ObjectExtensions.ThrowIfFailsAsync<TException, TResult>(Object, Func<Task<TResult>>, String)

See Also

IValueConverter
ValueConverterBase
  • Improve this Doc
  • View Source
Powered by MiracleDevs ©2017. Code licensed under the MIT License.
Documentation generated by DocFX.