Azavea.Open.DAO.SQL.SqlDaLayer.BoolTypeToString C# (CSharp) Method

BoolTypeToString() protected static method

Returns a nicely spaced AND or OR depending on the boolean type.
protected static BoolTypeToString ( BooleanOperator boolType ) : string
boolType BooleanOperator
return string
        protected static string BoolTypeToString(BooleanOperator boolType)
        {
            switch (boolType)
            {
                case BooleanOperator.And:
                    return " AND ";
                case BooleanOperator.Or:
                    return " OR ";
                default:
                    throw new NotSupportedException("Type of expression condition '" +
                                                    boolType + " not supported.");
            }
        }