bool IsValidDbValue(string dbValue)
Returns true if an instance corresponding to a given database value exists.
Name | Description |
---|---|
string dbValue | The database value. |
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;
This is equivalent client method to the database domain function <Domain>_API.Exists_Db(db_value_ IN VARCHAR2) RETURN BOOLEAN