function Max(limit) {
    return function (target, propertyName) {
        return models_1.addAttributeOptions(target, propertyName, {
            validate: {
                max: limit
            }
        });
    };
}
/**
 * Only allow values <= limit
 */
Only allow values <= limit
Only allow values < = limit
function Max(limit) {
    return function (target, propertyName) {
        return models_1.addAttributeOptions(target, propertyName, {
            validate: {
                max: limit
            }
        });
    };
}
function Max ( limit ) { return function ( target , propertyName ) { return models_1 . addAttributeOptions ( target , propertyName , { validate : { max : limit } } ) ; } ; }
Only allow values <= limit
Only allow values < = limit