Table of Contents

Class TimeSpanHandler

Namespace
IceCoffee.Db4Net.SqliteTypeHandlers
Assembly
IceCoffee.Db4Net.dll

Provides functionality for handling TimeSpan values in SQLite operations.

public class TimeSpanHandler : SqliteTypeHandler<TimeSpan>, SqlMapper.ITypeHandler
Inheritance
SqlMapper.TypeHandler<TimeSpan>
TimeSpanHandler
Implements
SqlMapper.ITypeHandler
Inherited Members

Remarks

This class is designed to parse TimeSpan values from SQLite database objects. It converts the database value, typically stored as a string, into a TimeSpan instance.

Methods

Parse(object)

Converts the specified object to a TimeSpan instance.

public override TimeSpan Parse(object value)

Parameters

value object

The object to convert. Must be a string representation of a TimeSpan.

Returns

TimeSpan

A TimeSpan instance that corresponds to the string representation provided in value.