DbNoRecordExist Validator

How to use exclude in DbNoRecordExist Validator ? I want to give like this; exclude => [field => “id” , value=> ‘value of id’]. How to get value of ‘id’ without giving constant value ?