Show / Hide Table of Contents

    Namespace Kros.KORM.Converter

    Classes

    NullAndTrimStringConverter

    Converter for string values. Based on settings, it can convert null and System.DBNull.Value values to empty string and trim string value. Values are converted in boht directions - when saving to database and also when returning from database.

    The converter cannot be directly instantiated. Instead of that, there are predefined static instances ConvertNull, TrimString and ConvertNullAndTrimString.

    Converter can be used for example to ensure, that value going into the database will be empty string if the column is set NOT NULL.

    Interfaces

    IConverter

    Interface, which describe converter, which know convert data from db to object and reverse.

    Back to top KROS a.s.