ExistDbValue

void ExistDbValue(string dbValue)

Checks if an instance corresponding to a given database value exists. If not, an exception will be raised.

Parameters

Name Description
string dbValue The database value.

Example

cEnumeration enumOrderSupplyType = cEnumeration.Get("OrderSupplyType");

// Validate the code in the field dfsSupplyTypeDb and raise an exception is it's not valid!
enumOrderSupplyType.ExistDbValue(dfsSupplyTypeDb.Text);

Comments

This is equivalent client method to the database domain method <Domain>_API.Exist_Db(db_value_ IN VARCHAR2)