namespace KarleyLibrary.Erweiterungen
{
    public static class BoolErweiterung
    {
        /// <summary>
        /// Wandelt den Wert eines Booleans in das Equivalent zur Firebird Datenbank um.
        /// </summary>
        /// <param name="value"></param>
        /// <returns></returns>
        public static string ToFirebirdBool(this bool value) => value ? "Y" : "N";

        public static int ToOpencartBool(this bool value) => value ? 1 : 0;
    }
}
