Namespace Kros.Data
Classes
ConnectionHelper
Helper class for opening database connection. It ensures opening and closing of the connection.
DataExtensions
Extensions for various data classes.
IdGeneratorBase
Base class for simple creation of implementations of IIdGenerator.
IdGeneratorFactories
Helper class for ID generator factories (IIdGeneratorFactory) for different databases. Factories are registered in the class using Register<TConnection>(String, Func<DbConnection, IIdGeneratorFactory>, Func<String, IIdGeneratorFactory>) method. Two factory methods are registered for every connection (database) type. One for creating generator with connection instance and one with connection string.
Interfaces
IIdGenerator
Interface for generating IDs for records in database. In general, IDs are just sequential numbers.
IIdGeneratorFactory
Interface for factory classes, which create instances of IIdGenerator.