IsValidDbValue

bool IsValidDbValue(string dbValue)

Returns true if an instance corresponding to a given database value exists.

Parameters

Name Description
string dbValue The database value.

Example

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

// Validate the code in the field dfsSupplyType and exit if it's not a valid one!
bool isValidDbValue = enumOrderSupplyType.IsValidDbValue(dfsSupplyTypeDb.Text);
if (!isValidDbValue )
   return;

Comments

This is equivalent client method to the database domain function <Domain>_API.Exists_Db(db_value_ IN VARCHAR2) RETURN BOOLEAN